How to add "ToolTip on toolTip1" to a property grid

G

Guest

I've noticed that when you add a ToolTip component to a Form (or UserControl)
the other controls on the form display a property in the property grid called
"ToolTip on toolTip1", so you can set the tooltip text on the selected
control. I'm currently writing my own component, and I want to add the same
functionality to the component, so that the other controls on the form
display a property in the property grid called "ControlText on MyComponent"
for example when they are selected.

Can someone please show me what I need to do to my component so that it will
display the "ControlText on MyComponent" property in the property grid when
another control is selected on the same form?

Thank you for your help

Regards
Mark
 
C

Chris Dunaway

Mark said:
Can someone please show me what I need to do to my component so that it will
display the "ControlText on MyComponent" property in the property grid when
another control is selected on the same form?

You need to look up the IExtenderProvider in the help. The ToolTip
component implements this interface which is what provides the ability.
 
G

Guest

Thanks. That did the trick.

Regards
Mark

Chris Dunaway said:
You need to look up the IExtenderProvider in the help. The ToolTip
component implements this interface which is what provides the ability.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top