How to display the tooltips when a textbox get focus

G

Guest

H

I have created a class to inherit the textbox. Beside the mouseOn event, I want the textbox show a tooltip when the textbox is got focus by using the keyboard's TAB key. How can i do it by using VB .NET

Thank you
 
D

DraguVaso

Hi Kenneth,

Did you try alreaddy the GotFocus-event?
Private Sub TextBox1_GotFocus(ByVal sender As Object, ByVal e As
System.EventArgs) Handles TextBox1.GotFocus
myToolbar.SetToolTip(TextBox1, "blablabla")
End Sub

Pieter

Kenneth said:
Hi

I have created a class to inherit the textbox. Beside the mouseOn event, I
want the textbox show a tooltip when the textbox is got focus by using the
keyboard's TAB key. How can i do it by using VB .NET?
 

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