Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > Docking Pane
  New Posts New Posts RSS Feed - Loading Forms From Panes
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Loading Forms From Panes

 Post Reply Post Reply
Author
Message
jcollier View Drop Down
Senior Member
Senior Member


Joined: 15 February 2006
Status: Offline
Points: 250
Post Options Post Options   Thanks (0) Thanks(0)   Quote jcollier Quote  Post ReplyReply Direct Link To This Post Topic: Loading Forms From Panes
    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.

Back to Top
jcollier View Drop Down
Senior Member
Senior Member


Joined: 15 February 2006
Status: Offline
Points: 250
Post Options Post Options   Thanks (0) Thanks(0)   Quote jcollier Quote  Post ReplyReply Direct Link To This Post Posted: 28 February 2006 at 3:38pm
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
Back to Top
 Post Reply Post Reply
  Share Topic   

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.04
Copyright ©2001-2021 Web Wiz Ltd.

This page was generated in 0.125 seconds.