Morning all,
When I use the .Print for the grid the form the grid is on is sent behind the calling form.
How do I stop this? I have tested the form with the .print line commented out and the form behaves correctly, staying in front of parent form.
With it uncommented it will go behind the calling form. But get this if i then reprint the grid witht he same code it will then stay in front!
The parent form displays the child form using frmName.show().
I am at a loss.
Help.
Deasun
Deasun,
Try using the parent form as the owner of the child window, such as "frmName.Show(frmName)". If that doesn't work, you could also try calling BringToFront on the child form.
-Matt
Thanks for the reply.
No luck.
I already tried "Me.Show(Me)" at the end of the MnuPrint sub.
I have now also tried your other suggestion; "Me.BringToFront()" at the same end point in the print sub.
The child form still remains behind the parent.
Current as a work around this bug I have the users on first displaying the form, click on the the refresh mnu option.
Then if they click on the print menu option the child form stays on top of the parent.
I am at a loss. :(
With the .Print commented out the form behaves correctly.
I'm not really sure what is happening here then. You could submit a small sample to Developer Support if you already have the latest hotfix. You could also try using your own UltraGridPrintDocument and printing from that instead.