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

Simple Question on Required Form Designer Variable(s)

Thread ID:





893 Aug 30,2002 02:42 PM UTC Aug 30,2002 06:17 PM UTC WinForms 1
Tags: FAQ
Roy Muller
Asked On August 30, 2002 02:42 PM UTC

Whe creating a new UserControl or Form class, VStudio inserts a Container class instance variable named components and assigns it to null. As far as I can tell it is never used beyond that. The overridden Dispose method checks it, and if it is not null, calls components.Dispose(). Is this variable really needed by the designer? If so, what is it used for? Just curious... -Roy

Administrator [Syncfusion]
Replied On August 30, 2002 06:17 PM UTC

Certain controls/components like ImageList has a overloaded constructor that will take a IComponents argument. For such components, the desginer will look for this "components" member in the Form and use that with the above constructor when generating code. Doesn't seem very elegant, does it? -Praveen


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