Displaying a Form within a form

01-04-2005, 07:45 AM
Hope someone can help me.

I have a screen with a treeview control on the left and effectively a blank canvas on the right. The application is linked to an access database.

When the user clicks on various nodes within the treeview it is necessary to display different formatted information on the right hand side. I have added a flexgrid and can display the data but it looks naff. What I would like to be able to do is design a number of separate windows and display each one as part of the initial form depending upon the users selection. Does anyone know if this is possible?

01-04-2005, 07:48 AM
You can use a Frame or PictureBox control as a container to act as your different "sub-forms" and then conditionally show/hide the different container controls as needed.

01-04-2005, 09:07 AM
Or you could do the following:

Form2.Show , Form1

Where Form1 is your main form and Form2 your 'sub form' on top of it.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum