PC Review Forums Newsgroups Microsoft DotNet Microsoft Dot NET Framework Forms How to display the tooltips when a textbox get focus

Reply

How to display the tooltips when a textbox get focus

 
Thread Tools Rate Thread
Old 31-03-2004, 08:41 AM   #1
=?Utf-8?B?S2VubmV0aA==?=
Guest
 
Posts: n/a
Default How to display the tooltips when a textbox get focus


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
  Reply With Quote
Old 31-03-2004, 10:07 AM   #2
DraguVaso
Guest
 
Posts: n/a
Default Re: How to display the tooltips when a textbox get focus

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" <anonymous@discussions.microsoft.com> wrote in message
news:5A2BD667-B8B2-4C2B-847D-0198479A42C9@microsoft.com...
> 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?
>
> Thank you



  Reply With Quote
Reply



Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off