Tooltips not working

OBBurton

Registered User.
Local time
Today, 00:56
Joined
Dec 26, 2013
Messages
77
Hi,
My tooltips for my command buttons do not work at all or in some cases not until you click the button. I tried this code from a post on this forum that was supposed to fix this problem, but it threw a "Method or data member not found" compile error for the "lblHelp1":

'Event on command button
Private Sub cmdRefreshList_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me.lblHelp1.Visible = True
End Sub

'Event on Detail section of Form
Private Sub Detail_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Me.lblHelp1.Visible = True Then
Me.lblHelp1.Visible = False
End If
End Sub

I don't know where or how to declare "lblHelp1". It is quite likely that I don't know enough to use it properly, I am a rank amature, but eager to learn. I entered this code in the form's code.

The strange thing is that the tooltips used to work, a little slow, but they worked. There have been no significant changes, but now the don't seem to work properly.
 
Hey there, I moved your post from the Queries section to General, since you're not asking about a Query.

lblHelp1 is the name of a control, presumably a label, on a form. If you want to use this code, you need to substitute the name(s) of objects that exist on your form.

Hope this helps,
 
Do you mean the "ControlTip Text"? This is a label that appears if you hover over a command button. Access implements this feature for you without code.

ControlTip Text is a property in the Other Tab. You enter the text here, that you want to appear when you hover over the button.
 
Control Tips is a feature that comes from Windows itself and it has never worked reliably.

The code posted by the OP is a workaround that uses a label to emulate the ControlTip.

The lblHelp1 label should contain what the tooltip message would say and be placed where it is wanted to appear. Its Visible property should be set to No so it isn't visible when the form loads.
 
Re: Tooltips not working
Control Tips is a feature that comes from Windows itself and it has never worked reliably.

Wow! Galaxiom you are correct. It's not working reliably. I just did some tests. I never noticed that it was not reliable and assumed it always worked. Hmm... I really like this feature and try to use it often. I am quite sad it's unreliable. It adds that professional touch to an application.
 
Galaxiom,

I Googled this problem and someone suggested to position the controls 'to the front' / 'bring to front'. The buttons that were not reliably working seem to be reliably working now.
 
Last edited:

Users who are viewing this thread

Back
Top Bottom