Hi there,
I have a label control on a form, when clicked it opens another form.
Code in the On Mouse Move event underlines the label when the mouse moves over. The underline is on a timer so after 0.5 seconds the underline disappears.
The problem i have is that when the the mouse moves over the label to open the form the On Mouse Move timer is started and is midway when the On Click event starts, when the timer has finished the form initial form with the label is no longer open so the code errors.
I guess I need to add some code to the on click event to stop the on mmouse move sub running. Can anyone advise on the code required?
(The reason the timer is used is that otherways of removing the underline such as on mouse move of the form's detail creates the annoying flashing with the label.)
Thanks
I have a label control on a form, when clicked it opens another form.
Code in the On Mouse Move event underlines the label when the mouse moves over. The underline is on a timer so after 0.5 seconds the underline disappears.
The problem i have is that when the the mouse moves over the label to open the form the On Mouse Move timer is started and is midway when the On Click event starts, when the timer has finished the form initial form with the label is no longer open so the code errors.
I guess I need to add some code to the on click event to stop the on mmouse move sub running. Can anyone advise on the code required?
(The reason the timer is used is that otherways of removing the underline such as on mouse move of the form's detail creates the annoying flashing with the label.)
Thanks