Click here to Skip to main content
15,885,670 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,

Can anyone help me fix this problem.

I have a mdi container in that I am opening 3 forms. What I want is out of the three forms, one of the form should not get maximized in any condition.

All the forms have the mdiparent property already set.
Posted
Updated 23-Dec-11 5:19am
v3
Comments
Nikil S 23-Dec-11 11:21am    
Edited grammar and spelling.

This Property may helps you

this.FormBorderStyle=FormBorderStyle.FixedToolWindow
 
Share this answer
 
Comments
Acharya Vikram 23-Dec-11 2:32am    
thanx 4 ur answer but i have already done that now i have made my form without border

this doesn't solve the problem

if any form is in maximize state other all open in same maximize state..

this make the smaller forms look ugly
first you need to set
VB
Me.WindowState=FormWindowState.Normal
Me.MaximizeBox = False

Second you need to call form as
VB
form.showdialog()
in mdi parent when you are calling that form
 
Share this answer
 
Comments
Acharya Vikram 26-Dec-11 3:20am    
thanx but it doesn't solve that issue
Its quite simple really.
Just set the maximize property to false - this.MaximizeBox = false;

Here is a simple blog[^] explaining this.
 
Share this answer
 
Comments
Acharya Vikram 23-Dec-11 2:30am    
thanx 4 ur answer but i have already done that and i have made my form is without border too...

this doesn't solve the problem

if any form is in maximize state other all open in same maximize state..
For the form that you don't want to be maximized, hand the ResizeEnd event, and check the Form.WindowState property. If the form is maximized, set the state to FormWindowState.Normal.
 
Share this answer
 
Comments
Acharya Vikram 26-Dec-11 3:19am    
thanx 4 ur support

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