Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: VB.NET
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 22-Dec-11 21:23pm
Edited 23-Dec-11 6:19am
Nikil S3.3K
v3
Comments
Nikil S at 23-Dec-11 11:21am
   
Edited grammar and spelling.
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 2

This Property may helps you
 
this.FormBorderStyle=FormBorderStyle.FixedToolWindow
  Permalink  
Comments
Acharya Vikram at 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
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 3

first you need to set
Me.WindowState=FormWindowState.Normal
Me.MaximizeBox = False
Second you need to call form as
form.showdialog()
in mdi parent when you are calling that form
  Permalink  
Comments
Acharya Vikram at 26-Dec-11 3:20am
   
thanx but it doesn't solve that issue
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

Its quite simple really.
Just set the maximize property to false - this.MaximizeBox = false;
 
Here is a simple blog[^] explaining this.
  Permalink  
Comments
Acharya Vikram at 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..
Rate this: bad
good
Please Sign up or sign in to vote.

Solution 4

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.
  Permalink  
Comments
Acharya Vikram at 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)

  Print Answers RSS
0 OriginalGriff 8,284
1 Sergey Alexandrovich Kryukov 7,327
2 DamithSL 5,614
3 Manas Bhardwaj 4,986
4 Maciej Los 4,920


Advertise | Privacy | Mobile
Web01 | 2.8.1411023.1 | Last Updated 23 Dec 2011
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100