Print Page | Close Window

switching vb 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=3468
Printed Date: 27 June 2024 at 2:14pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


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




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



Posted By: Oleg
Date Posted: 09 March 2006 at 3:40pm

It can be UserControls.



-------------
Oleg, Support Team
CODEJOCK SOFTWARE SOLUTIONS


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



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



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


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




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