Tooltips in a text box

RichStone

Registered User.
Local time
Today, 23:50
Joined
Oct 18, 2013
Messages
21
I'm trying to use a text box to display tooltips in whenever buttons or certain fields are hovered over.

I have used the 'On mouse move' property to update the text box which works perfectly. However, I can't get the text box to clear when the mouse moves away.

I have tried using the property on the underlying form but it only works if there's nothing else in the area, meaning the mouse has to be moved to the side of all the details to clear the text box.

Can anyone suggest a better way of doing this?
 
use your forms detail mousemouse event and your form's mousemove event

Private Sub Detail_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
me.textbox = ""
End Sub

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
me.textbox=""
End Sub
 
Thanks for the reply. That's basically what I had already done although only on the detail part of the form. However, there now seems to be another issue in that the form flashes every time I hover over anything or go back to the space. Does this method of detecting the mouse movement cause a refresh of the form or anything?
 

Users who are viewing this thread

Back
Top Bottom