Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Overriding the maximize option
Message
General information
Forum:
ASP.NET
Category:
Other
Title:
Overriding the maximize option
Miscellaneous
Thread ID:
00943070
Message ID:
00943070
Views:
80
UPDATE :
____________________________________________________
I just had to refresh the form and it appeared fine, thanks!
AND i didn't need any of the code below.
____________________________________________________

Hi All,

How do i override the form setting for the maximize option in the properties.

I am subclassing a form and want the form maximizebox option to default to false.

I have set the flag on my base form and it is set to false.
When i create a new form based off of the the above form the setting is the windows setting not my setting, is this just a gui setting and it will appear at runtime as a form with no maximize control on it?

This is what i think i should be doing in the base form.
		/// <summary>
		/// Override the Window Maximize box to false always
		/// </summary>
		[DefaultValue(false)]
		public override bool MaximizeBox
		{
			get { return base.MaximizeBox; }
			set { base.MaximizeBox = false; }
		}
Shawn Dorion
Geo Sektor Dot Com
Website: http://www.geosektor.com

Web Hosting Plans
Visit : http://WebHosting.Applications4u.com/
Reply
Map
View

Click here to load this message in the networking platform