ToolTips On Buttons

G

Guest

How do you set the tool tip property on a button. This was easy in VB6.
Here is the code I am trying to use.

Dim toolTip1 As New ToolTip()

' Set up the delays for the ToolTip.
toolTip1.AutoPopDelay = 500
toolTip1.InitialDelay = 100
toolTip1.ReshowDelay = 50

' Force the ToolTip text to be displayed whether or not the form is active.
toolTip1.ShowAlways = False


For Each Buttons As System.Windows.Forms.Button In Me.Controls
Debug.Print(Buttons.Text)
toolTip1.SetToolTip(Buttons, Buttons.Tag)
Next

The problem is two fold - the me.controls is giving me an error and the only
"buttons" that are showing up are the frames I have set up.

Thanks,

Ken
 
N

Neo

add a ToolTip control to your form, & check its methods & the properties.

Example,
- add the ToolTip control to your form,
- Use the SetToolTip() method of the above control to set tooltips for any
control,
OR
- Set the tooltip in the ToolTip property of the required control.

FYI - ToolTip component is an Extender Provider, just as the ErrorProvider,
HelpProvider controls, & others (.NET is truly wonderful)
 

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