How to remove ToolTip from control (PictureBox)

  • Thread starter Thread starter Roman
  • Start date Start date
R

Roman

I want to remove tooltip from a control
or get it (not it string value) bacause i want to change tooltip text.
Or tell me how to change text if i have no instance of ToolTip ?

Thank you!
 
Hi Roman,

If you use Visual Studio .Net drag a tooltip control to your form. This has the interesting effect of adding a new property to all the controls on the form (in the Visual Studio designer only, "Tooltip on mytooltipcontrol1", at the bottom of the properties page).

To set a tooltip at runtime you use
toolTip1.SetToolTip(textBox1, "Hello World");

To create a tooltip at runtime use
ToolTip t = new ToolTip(this.components);


Happy coding!
Morten Wennevik [C# MVP]
 
* "Roman said:
I want to remove tooltip from a control
or get it (not it string value) bacause i want to change tooltip text.
Or tell me how to change text if i have no instance of ToolTip ?

You will have to use a ToolTip component to set the tooltip text. You
can use its 'SetToolTip' method to set the tooltip text for a control.
 
Thank you very much!
My error was that i create new ToolTip object for each control.
Dragging one tooltip for all my controls helps me!
Thank you for your work!

Morten Wennevik said:
Hi Roman,

If you use Visual Studio .Net drag a tooltip control to your form. This
has the interesting effect of adding a new property to all the controls on
the form (in the Visual Studio designer only, "Tooltip on
mytooltipcontrol1", at the bottom of the properties page).
To set a tooltip at runtime you use
toolTip1.SetToolTip(textBox1, "Hello World");

To create a tooltip at runtime use
ToolTip t = new ToolTip(this.components);


Happy coding!
Morten Wennevik [C# MVP]
 
Back
Top