开发者

How to create a shared object across all controls that appears at the bottom of Visual Studio Winforms designer?

开发者 https://www.devze.com 2022-12-11 13:34 出处:网络
I want to create an instance of an object that has to be set to each开发者_JAVA技巧 control\'s specific property.

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  {  }
0

精彩评论

暂无评论...
验证码 换一张
取 消