Click here to Skip to main content
15,910,878 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
HI, All

I created a MDI form to open other forms in the same window it is working fine now, but my problem is the sub forms are fixing the MDI Form they are opening some ware else.

Please tell me how to fix the other forms in MDI Parent form.

Thanx
Posted

You can make use of WindowState property. Set it to maximized for all the child forms.
 
Share this answer
 
Comments
manoharnch 9-Aug-11 5:35am    
Thanx sir, it is working...
dan!sh 9-Aug-11 5:37am    
You are welcome.
manoharnch 9-Aug-11 5:40am    
How to change the form color, apart from BLUE. ?
dan!sh 9-Aug-11 6:01am    
You mean the title bar? There is no easy way to do that. You will have to manually draw it. Since it is a non-client area (i.e. out of form's control), you may have to use P/Invoke. Search for "Change Windows for Title bar color" and you may get samples.
On the sub-forms Set the StartLocation property to CenterParent.
 
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