Hi,

I am programatically trying to detect when a Component
(System.ComponentModel.Component) or Control is dropped or removed from the
form in a C# WinForm project. I know the action goes on in the
InitializeComponent method. Something seems to trigger exactly when the new
keyword appears in front of the Component (i.e. That's when it gets Property
Grid and designer). I have spent all day in
System.Windows.Forms.Design.ControlDesigner and such. I see
ComponentEventArgs for ComponentAdded. Then there are attributes. Basically,
how does the IDE VS.NET "know" when a Component or Control is added and to
give it property grid and designer support? In other words, if I new one up
there in that section of code, it just "knows." How? And how can I "know"?


---------------------
Sam Gentile
.NET Consultant
Co-author: Wrox Visual C++ .NET: A primer for C++ developers
BLOG: http://radio.weblogs.com/0105852/
http://www.project-inspiration.com/sgentile/DotNet.htm
http://www.project-inspiration.com/sgentile/
---------------------------




_________________________________________________________________
Chat with friends online, try MSN Messenger: http://messenger.msn.com

You can read messages from the DOTNET archive, unsubscribe from DOTNET, or
subscribe to other DevelopMentor lists at http://discuss.develop.com.

Reply via email to