Hi
i am right in thinking there isn't a mouseover function or a mouseLeave function in vb6?
i want to mimic this for a menu. i.e like in a browser your mouse goes over a clickable link and it changes colour.
i've tried to do this with a timer function, changing the labels colour on MouseMove then setting the timer to 1/2 second which after it should return the label back to it's normal colour. but its not working, the timer function is just executing straight away and not pausing for 1/2 second before executing the code?
Any ideas? what am i doing wrong?
Thanks!!Code:Private Sub Lbl_Menu_Details_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single) Lbl_Menu_Details.ForeColor = RGB(200, 0, 0) Timer_Menu.Enabled = True Call Timer_Menu_Timer Timer_Menu.Enabled = False End Sub Private Sub Timer_Menu_Timer() 'This interval is set to 1/2 second Lbl_Menu_Details.ForeColor = 0 End Sub
Jon




Reply With Quote