Label Mousemove Procedure

G

Guest

Do anyone know of a procedure to change the forecolor of a label control
during a mousemove event.

I would like the lable's forecolor to change when I move my mousepointer
over it.
 
G

Guest

Tru said:
Do anyone know of a procedure to change the forecolor of a label control
during a mousemove event and to change back to the original forecolor of the label.

I would like the lable's forecolor to change when I move my mousepointer
over it.
 
G

Guest

Right Click on label go to build event and paste this code make sure that you
change the label name where its "Label80".. Also change the color you want ie
lngyellow or lngred or lngblue etc

Private Sub Label80_MouseMove(Button As Integer, Shift As Integer, X As
Single, Y As Single)
Label80.ForeColor = lngred
End Sub

Madhuri
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top