ATTENTION: You are viewing a page formatted for mobile devices; to view the full web page, click HERE.

Main Area and Open Discussion > Living Room

Form z-order when showing modeless form

(1/1)

PPLandry:
I couldn't find a forum specifically devoted to coding, so I'm posting here...

I've got a VB app (main form) and want to show a modeless form. No problem. I used .Show vbmodeless,MainForm

Now, when my app does not have the focus, and the code is run to open the form, the form opens correctly, but also brings up the main form. I want the main form to stay in its current z-order, and only show the modeless one.

I can trick it with making the main form invisible, but it isn't quite what I want, as it still messes up the Windows zorder of its windows.

Any ideas?

Navigation

[0] Message Index

Go to full version