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.
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Simple Question on Required Form Designer Variable(s)

Thread ID:

Created:

Updated:

Platform:

Replies:

893 Aug 30,2002 02:42 PM UTC Aug 30,2002 06:17 PM UTC Windows Forms 1
loading
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

CONFIRMATION

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.

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

;