How to show Tooltip for UserControl

S

Sakharam Phapale

Hi All,
I have developed my own user control and created custom mouse enter event.
I need to show ToolTip on mouse enter event.
I have written following code for that, but it doesn't show ToolTip.

Private Sub MyControl_MouseEnter()
Dim myToolTip as New ToolTip()
myToolTip.SetToolTip(myControl,"Hello")
End Sub

I checked above by using,

msgbox (myToolTip.GetToolTip(myControl))

It gives "Hello" message box, but why above code doesn't show the ToolTip?

Any help will be appreciated.

Thanks in advance
Sakharam Phapale
 
O

One Handed Man \( OHM - Terry Burns \)

ToolTip1.SetToolTip(Me.TextBox1, "Hello")


--
OHM ( Terry Burns ) * Use the following to email me *

Dim ch() As Char = "ufssz/cvsotAhsfbuTpmvujpotXjui/OFU".ToCharArray()
For i As Int32 = 0 To ch.Length - 1
ch(i) = Convert.ToChar(Convert.ToInt16(ch(i)) - 1)
Next
Process.Start("mailto:" & New String(ch))
 

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