Hi,
I am using ultraprintpreviewdialog 7.3. In the runtime when i hit the print button dialog is opening but suddenly it goes behind the application. Can anyone tell me how to fix this issue
Thanks in Advance
Saravanan Nagarajan
I have given like this now
ultraPrintPreviewDialog1.ShowDialog();
earlier i was used this,
ultraPrintPreviewDialog1.Show();
it is working fine. Now the dialog doesn't goes behind the form. But i want to know is there any other way to fix this?
Thanks in advance
Does the Show or ShowDialog method have another overload? You probably have to pass in the owning window.
By passing an Owner to the Show method you are telling .net to ensure that the form stays above the owner so if the owned form is maximized then it will obscure the owner form even if you try to activate the owned form; this is behavior in the .net framework and not something that we have control over. I'm not sure what in your situation is causing the print preview form to go behind the main form - perhaps you can try hooking the Deactivate event of the print preview dialog and see what the call stack looks like.
Hi there,
I too am having issues with the print preview dialog hiding behind the main form.
However it is required that the print preview form not be shown as a modal dialog, hence allowing the user to switch from the print preview form to the main form in the application.
I have tried passing into the Show method the form that will own the print preview form. Although the print preview form is shown in front of the main application form, the problem is that the user has difficulties switching back to the main form. If the print preview form is maximized, the user clicks on the application button in the task bar, but end up being redirected back to the print preview form. If the print preview form is not minimized nor maximized, the user can switch back to the main application, however the print preview form will still be on top.
How can I overcome this issue?
Regards, Kosta.
I am using SCSF and within the view I just used:
UltraPrintPreviewDialog1.ShowDialog(this);
You will need to pass in the owning form. I don't know anything about SCSF, but your UserControl will need to somehow get a reference to the form as an IWin32Window and pass that in if you want the dialog to show as a child of that form.
Yes it is having another overload method like,
ShowDialog( Iwin32Window Owner )
It is asking the form object as a param. I am working with SCSF. In my situvation i am using usercontrol (View). From the usercontrol i want to open the showdialog. Can you tell me how to do that?