Codejock Forums Homepage
Forum Home Forum Home > Codejock Products > ActiveX COM > General Discussion
  New Posts New Posts RSS Feed - switching forms
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

switching forms

 Post Reply Post Reply
Author
Message
tobi View Drop Down
Senior Member
Senior Member
Avatar

Joined: 09 September 2004
Location: Germany
Status: Offline
Points: 451
Post Options Post Options   Thanks (0) Thanks(0)   Quote tobi Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
bajul View Drop Down
Newbie
Newbie


Joined: 07 November 2004
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote bajul Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
bajul View Drop Down
Newbie
Newbie


Joined: 07 November 2004
Status: Offline
Points: 5
Post Options Post Options   Thanks (0) Thanks(0)   Quote bajul Quote  Post ReplyReply Direct Link To This Post 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
Back to Top
SuperMario View Drop Down
Admin Group
Admin Group
Avatar

Joined: 14 February 2004
Status: Offline
Points: 18057
Post Options Post Options   Thanks (0) Thanks(0)   Quote SuperMario Quote  Post ReplyReply Direct Link To This Post Posted: 10 November 2004 at 8:16am
That should be:

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

without the "Set" as you pointed out
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.141 seconds.