How to create a shared object across all controls that appears at the bottom of Visual Studio Winforms designer?
I want to create an instance of an object that has to be set to each开发者_JAVA技巧 control's specific property.
As is VS designer just creates a separate instance for each control.
How do I do this so that my shared object shows up at the bottom of the VS designer window, like a timer, or a imagelist.
'Things' end up in the bottom Part if they are derived from Component but not from Control.
I think you are looking for a Provider derived class (like ToolTip, HelpProvider and ErrorPorvider).
It would look like:
public class MyProvider : Component, IExtenderProvider { }
精彩评论