How to assign a function or property to all other classes, like ToolTip

When I drag an object ToolTipin my form into C #, each form control gets a new property ToolTipthat did not exist before. I am trying to create something like this ToolTipso that when dragging it into my form all controls automatically get a new property.

I would also appreciate if someone could give me a definition for this, so that I could edit my question to convey my intention and meaning better.

+5
source share
2 answers

, , ". , . , VS, VS, " " , , Extender, .

LayoutPanels, TableLayoutPanel FlowLayoutPanel, , " -".

+6

ToolTip . , .

ToolTip, , :

[ProvideProperty("ToolTip", typeof(IComponent))]
class ToolTip : IExtenderProvider {...}
+4

All Articles