I've wondered for a long time what IComponent, IContainer, and ISite are for. I've read the documentation, but it is extremely vague (or I'm thinking about it too hard). I know that if I create a class as a component, it can be used in the Visual Studio designer. But I'd really like to know more generally: what does the Component/Container pattern accomplish, and can it make my life easier?
They are plumbing for the Windows Forms designer. You rarely have to implement them yourself, just derive your component class from Component. Start worrying about them when you want to implement your own designer. Doing so is even less documented.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With