We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Resize form to design-time values

Thread ID:





13284 Apr 24,2004 12:55 PM UTC May 4,2005 12:41 AM UTC WinForms 2
Tags: FAQ
Asked On April 24, 2004 12:55 PM UTC

I am wondering how to determine at run time the size of the form as it was specified at design time. For example if a form is resized by a user I would like to allow them to trigger an event and have the form determine it's original size from the design property grid. Any help appreciated.

Administrator [Syncfusion]
Replied On May 3, 2004 10:27 AM UTC

Hi Jim, The values for the property grid are serialized back to the InitializeComponent() method. The only thing I know is to store these values in instance variable and reset the current values with them. Regards, Thomas

Administrator [Syncfusion]
Replied On May 4, 2005 12:41 AM UTC

Please have a look at form''s DefaultSize values: this.DefaultSize Regards, Mital


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.Close Icon

Live Chat Icon For mobile
Live Chat Icon