MouseMove event on disabled controls

5529

New member
Local time
Today, 22:43
Joined
Oct 30, 2013
Messages
3
I know this sounds a bit counterintuitive, but I'm using a mousemove event to display help text for controls in my form.

This works well, but I'd like to display help text when the control is disabled as well (to explain to the user why it's disabled).

Short of superimposing transparent boxes everywhere, is there any way to fire a mousemove event when hovering over a disabled control?
 
Can't think of any with the Control Disabled. If you could cope with simply Locking the Control, instead of Disabling it, you can use something like this:

Code:
Private Sub ControlName_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
  If Me.ControlName.Locked = True Then
   MsgBox "Message When Control is Locked."
  Else
   MsgBox "Message When is Not Locked"
  End If
End Sub
Just substitute whatever it is you want for the Messageboxes.

Linq ;0)>
 

Users who are viewing this thread

Back
Top Bottom