|  | 
| switching forms | 
| Post Reply   | 
| Author | |
| tobi   Senior Member     Joined: 09 September 2004 Location: Germany Status: Offline Points: 451 |  Post Options  Thanks(0)  Quote  Reply  Topic: switching forms Posted: 20 October 2004 at 2:43pm | 
| 
   I´m looking for a way to create a sdi vb6 application which consists of a main form and some "subforms".  In the left of the windows should be a taskpanel control with multiple entries. Depending on the entries the user chooses there should be displayed the corresponding form for the taskpanel entry in the "rest" of the form. This means I would have to switch between multiple forms... Did anyone some similar task before. I would be very glad to get help... Thanks a lot | |
|  | |
| SuperMario   Senior Member     Joined: 14 February 2004 Status: Offline Points: 18057 |  Post Options  Thanks(0)  Quote  Reply  Posted: 20 October 2004 at 3:09pm | 
| 
   Take a look at the Outlook 2003 sample.  It is an SDI application and uses docking panes to hold the forms and subforms.
    | |
|  | |
| bajul   Newbie   Joined: 07 November 2004 Status: Offline Points: 5 |  Post Options  Thanks(0)  Quote  Reply  Posted: 08 November 2004 at 10:24pm | 
| 
   I'm having the same problem. The example is using the same form frmMail, it only change the caption. What i'm looking for is replace the current form in pane with the other form. 
 Please provide the solution. Or should i use mdi? Thanks. | |
|  | |
| SuperMario   Senior Member     Joined: 14 February 2004 Status: Offline Points: 18057 |  Post Options  Thanks(0)  Quote  Reply  Posted: 09 November 2004 at 7:00am | 
| 
   Can you be more specific as to how you want this to work?  What do
you mean that it is only using frmPaneMail?  What pane should
replace which?  You can do this just fine with sdi, just need more
detail before I post a solution   | |
|  | |
| bajul   Newbie   Joined: 07 November 2004 Status: Offline Points: 5 |  Post Options  Thanks(0)  Quote  Reply  Posted: 10 November 2004 at 8:13am | 
| 
   ah .... just got a replay from tech support. The solution is work nicely :)
 Thanks a lot. (when a click or other similar event) it work like normal mdi form in vb project, but it use pane in sdi form. Set DockingPaneManager.FindPane(PANE_WELCOME).Handle = AddNewPage.hwnd | |
|  | |
| SuperMario   Senior Member     Joined: 14 February 2004 Status: Offline Points: 18057 |  Post Options  Thanks(0)  Quote  Reply  Posted: 10 November 2004 at 8:16am | 
| 
   That should be: DockingPaneManager.FindPane(PANE_WELCOME).Handle = AddNewPage.hwnd without the "Set" as you pointed out  | |
|  | |
| 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 |