I have a tooltip I want to show it while I am typing on a textbox. Is it possible to show tooltip without mouse over?
Printable View
I have a tooltip I want to show it while I am typing on a textbox. Is it possible to show tooltip without mouse over?
Thread moved from the FAQ forum, which is not the place to post your questions.
Welcome to VBForums :wave:
It may be possible, but it would be harder than doing something else instead. What I would recommend is using a Label (set to the ToolTip colours), which you simply show/hide as apt, eg:
Code:Private Sub Text1_GotFocus()
Label1.Visible = True
End Sub
Private Sub Text1_LostFocus()
Label1.Visible = False
End Sub
Fist thanks a lot for you reply. But I wanted it to be tooltip coz I have a nice tooltip and it might be over other controls. Who Knows?
This is one of the worst ways to do it I'm sure. But it may work good enough for you. The ideal way would be to use a class module with CreateWindow() API function (and a lot more APIs) but this is a quick/dirty solution.
Run the example in VB and type in the TextBox.
You could also pretty easily add other effects like a drop shadow or something, but you may want to search for "custom tooltip" on www.pscode.com/vb there are some good ones.
Thanks a lot DigiRev.
You're welcome