Click here to Skip to main content
15,896,359 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I use C# 2005
I make project with csgl.
I have size of the OpenGL control as desired.
when I set IsMdiContainer of Form is true,It can contain Child Form
I want to Form Parent contain 5 Form.
4 Form is Top,View,Front,Left.
1 Form is Toolbox.It as ToolBox of Visual sutdio.But It has Treeview,Tab,...
Toolbox as 3d max.
How?
Thank You
Posted

Hi,
Instead of adding multiple forms on control,make a user control and place all your desireable controls on it,then add your user control on your form


Check this[^]
 
Share this answer
 
Comments
#realJSOP 16-Jul-11 8:30am    
You should probably go on to say that one usercontrol = one of his objects that were previously forms.
giatuan2011 17-Jul-11 3:21am    
Oh,User control.good idea.
I can more easily control OpenGL
Can I use the split container?
The problem is how can install the OpenGL control over it
Syed Salman Raza Zaidi 17-Jul-11 15:16pm    
You can use DLL of OpenGL
A Form cannot be a parent of other forms (unless this is a MDI container; but I recommend not even play with the idea of using MDI). What you describe is a different thing. If you try to add a Form as a child control of other Form you will get exception. Instead, add other controls to the form, such as Panel. Use the property Dock with Padding to arrange panels as you described. In some cases, it's very useful to use Splitter.

Another way to make a good design is tabbed interface based on TabControl. What you thought as of Forms will be the instances of TabPanel.

—SA
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900