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

switching vb 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 vb forms
    Posted: 04 January 2006 at 12:00pm

I want to create an application in VB6 with a taskpane on the left side and depending on the choosen entry in I want to display different forms in the main window. 
Did anyone something like this before? Until now I didnīt found any solution...
Please help .... Many thanks...

Back to Top
dbilbija View Drop Down
Newbie
Newbie


Joined: 08 March 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote dbilbija Quote  Post ReplyReply Direct Link To This Post Posted: 09 March 2006 at 11:49am

i'd love an answer to this too.... is it a tab control? are there better containers? what's a good solution for this?

dushan bilbija

Back to Top
Oleg View Drop Down
Admin Group
Admin Group


Joined: 21 May 2003
Location: United States
Status: Offline
Points: 11234
Post Options Post Options   Thanks (0) Thanks(0)   Quote Oleg Quote  Post ReplyReply Direct Link To This Post Posted: 09 March 2006 at 3:40pm

It can be UserControls.

Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS
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: 16 March 2006 at 12:56pm
I did this.  I used a taskpane on the left side of a MDI form.  In the pane I put a shortcutbar.  On the shortcutbar when you click a shortcut item I show a form which has a vbAccelerator treeview.  Then...in the NodeClick event of the treeview you can show the mdiChild form which will fill the rest of the main window.

I kinda pieced this together using the codejock samples for shortcutbar and Outlook 2003 sample.

Back to Top
dbilbija View Drop Down
Newbie
Newbie


Joined: 08 March 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote dbilbija Quote  Post ReplyReply Direct Link To This Post Posted: 16 March 2006 at 1:01pm

how do you fix the child window from being maniupulated like a true child window? ie.... being maxmized, tiled, etc.

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: 16 March 2006 at 1:06pm
I didn't restrict mine like that but you could probably do one of several things. 
1. Remove the Control Box on the child form completely
2. Disable the X on the window using the Win32 API
3. Change the BorderStyle property on the form to suit your needs.

Hope this helps or at least gets you on the path to what you want!
Back to Top
dbilbija View Drop Down
Newbie
Newbie


Joined: 08 March 2006
Status: Offline
Points: 7
Post Options Post Options   Thanks (0) Thanks(0)   Quote dbilbija Quote  Post ReplyReply Direct Link To This Post Posted: 16 March 2006 at 1:07pm

that sounds like the solution. no border, no caption... so the form is fixed.

i'll give it a try. thx!

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.281 seconds.