Loading Forms From Panes |
Post Reply |
Author | |
jcollier
Senior Member Joined: 15 February 2006 Status: Offline Points: 250 |
Post Options
Thanks(0)
Posted: 28 February 2006 at 3:08pm |
I have another small problem. First, background: VB6, MDI Application.
In the MDI Parent form I have a pane with a shortcut bar on it. The shortcut bar has a form (frmPane). On the form is a treeview. When I click a node on the treeview I want a non-mdichild form to open up. Opening up the form is no problem. The problem is that the form will not stay on top. When it opens, it opens up and then minimizes and focus shifts back to the treeview. I have run the following code: First I tried: Load frmIndexMain frmIndexMain.Show frmIndexMain.SetFocus Then I tried: Load frmIndexMain frmIndexMain.Show frmIndexMain.WindowState = vbMaximized Neither set of code worked. Surely I am just missing something. Thanks again for all the previous help. |
|
jcollier
Senior Member Joined: 15 February 2006 Status: Offline Points: 250 |
Post Options
Thanks(0)
|
This kinda works. Although it doesn't set focus to the form, at least the new form is on top so that's fine with me.
Load frmIndexMain frmIndexMain.Show 0, frmMDIParent |
|
Post Reply | |
Tweet
|
Forum Jump | Forum Permissions You cannot post new topics in this forum You cannot reply to topics in this forum You cannot delete your posts in this forum You cannot edit your posts in this forum You cannot create polls in this forum You cannot vote in polls in this forum |