topbanner_forum
  *

avatar image

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

Login with username, password and session length
  • Friday April 19, 2024, 1:21 pm
  • Proudly celebrating 15+ 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 3204 times)

PPLandry

  • Supporting Member
  • Joined in 2007
  • **
  • Posts: 702
    • View Profile
    • InfoQube Information manager
    • Read more about this member.
    • 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?
Real generosity toward the future lies in giving all to the present -- Albert Camus -- www.InfoQube.biz