DonationCoder.com forum
 
Read-only archive. This is a static copy of the DonationCoder.com forum. Reading and searching work as before; logging in, posting and private messages do not.
Archive of 2026-10-21 · About this archive · Main site

Author Topic: Form z-order when showing modeless form  (Read 4,366 times)

PPLandry

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 702
Form z-order when showing modeless form
« on: December 03, 2008, 03:33 PM »
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?
Real generosity toward the future lies in giving all to the present -- Albert Camus -- www.InfoQube.biz

Original address: https://www.donationcoder.com/forum/index.php?topic=16010.0