Thread moved from the FAQ forum, which is not the place to post your questions.
Welcome to VBForums
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
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.