Displaying a Form within a form

NCSUK
01-04-2005, 08: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?

00100b
01-04-2005, 08: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.

Raaf
01-04-2005, 10: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