By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,238 Members | 1,771 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,238 IT Pros & Developers. It's quick & easy.

Form, ContainerControl and IContainer

P: n/a
Why is it that the Form class does not implement the IContainer
interface? It inherits from ContainerControl but components are
attached to the 'components' field via the generated

private System.ComponentModel.Container components = null;

statement. Said differently, when should I implement the IContainer
interface?

Thanks a lot!

Swa.

http://netron.sf.net/
Nov 16 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
Francois,

IContainer does the following things

a) Encapsulate and track zero or more components
b) Components can be visual or non-visual

ContainerControl does the following things

a) represents a control that can function as a container for other controls
b) provide a logical boundary for contained controls.
c) provides focus management. tracks active controls
d)captures TAB key to move to next control
--
Shak
(Houston)


"Francois Vanderseypen" <ne***********@hotmail.com> wrote in message
news:40*************************@posting.google.co m...
Why is it that the Form class does not implement the IContainer
interface? It inherits from ContainerControl but components are
attached to the 'components' field via the generated

private System.ComponentModel.Container components = null;

statement. Said differently, when should I implement the IContainer
interface?

Thanks a lot!

Swa.

http://netron.sf.net/

Nov 16 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.