Print Page | Close Window

switching forms

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: General Discussion
Forum Description: Topics Related to Active-X COM Development in General
URL: http://forum.codejock.com/forum_posts.asp?TID=1306
Printed Date: 28 April 2024 at 7:38pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: switching forms
Posted By: tobi
Subject: switching forms
Date 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



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


Posted By: bajul
Date 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.


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


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


Posted By: SuperMario
Date Posted: 10 November 2004 at 8:16am
That should be:

    DockingPaneManager.FindPane(PANE_WELCOME).Handle = AddNewPage.hwnd

without the "Set" as you pointed out



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