Print Page | Close Window

Loading Forms From Panes

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Docking Pane
Forum Description: Topics Related to Codejock Docking Pane
URL: http://forum.codejock.com/forum_posts.asp?TID=3712
Printed Date: 02 July 2024 at 9:24am
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: Loading Forms From Panes
Posted By: jcollier
Subject: Loading Forms From Panes
Date 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.




Replies:
Posted By: jcollier
Date 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



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net