C# Tool tip text

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hello,
What is the property to set tool tip text with. I can't seem to find it on
say, a button control.

Thank you in advance
Ant
 
Ant said:
What is the property to set tool tip text with. I can't seem to find it on
say, a button control.

You create the ToolTip and then call SetToolTip, passing in the control
you're interested in. Have a look at the docs for the ToolTip class for
an example.
 
What is the property to set tool tip text with. I can't seem to find it on
say, a button control.

1) Select a WinForm

2) Open up the Toolbox (Ctrl-Alt-X)

3) Select Windows Forms - about half way down you will find ToolTip

4) Double-click it to add it to your WinForm - rename it if you want...

5) Now, each of your WinForms GUI objects (Button, TextBox etc) should have
an additional property called ToolTip on toolTip1 (or whatever you renamed
it to).

6) Set the ToolTip text you want to display - N.B. you only need one of
these controls per WinForm - you don't need one per GUI object.
 
Thank you, that's great!
Ant

Mark Rae said:
1) Select a WinForm

2) Open up the Toolbox (Ctrl-Alt-X)

3) Select Windows Forms - about half way down you will find ToolTip

4) Double-click it to add it to your WinForm - rename it if you want...

5) Now, each of your WinForms GUI objects (Button, TextBox etc) should have
an additional property called ToolTip on toolTip1 (or whatever you renamed
it to).

6) Set the ToolTip text you want to display - N.B. you only need one of
these controls per WinForm - you don't need one per GUI object.
 

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

Back
Top