Home | Blog | Software | Reviews and Features | Forum | Help | Donate | About us

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • October 16, 2017, 09:06 PM
  • Proudly celebrating 10 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Form z-order when showing modeless form  (Read 1980 times)


  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 695
    • View Profile
    • Donate to Member
Form z-order when showing modeless form
« on: December 03, 2008, 09:33 AM »
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?