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
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