Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Overriding the maximize option
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Titre:
Overriding the maximize option
Divers
Thread ID:
00943070
Message ID:
00943070
Vues:
79
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/
Répondre
Fil
Voir

Click here to load this message in the networking platform