PDA

Click to See Complete Forum and Search --> : HighLight Label with move move over label


Troy Mac
Nov 10th, 1999, 01:06 AM
I have a program that when a mouse moves over a label it changes color. I can do the first color change fine but when the mouse moves off the label I want it to change back to the original color. If anyone knows how to do this I would appreciate the help. I did find some code that does this with VB6 but its to large and confusing plus its for the Web and not for an exe program.

Please help

Troy

------------------
Troy MacPherson
Customer Suport Software Analyst
t_macpherson@yahoo.com

QWERTY
Nov 10th, 1999, 01:32 AM
Try this
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label1.BackColor = vbBlue 'change VbBlue to your color
End Sub

Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Label1.BackColor = vbRed 'change VbRed to your color
End Sub


Should work

------------------
Visual Basic Programmer (at least I want to be one)
------------------
PolComSoft
You will hear a lot about it.