changing colour in code

Mcgrco

Registered User.
Local time
Today, 07:57
Joined
Jun 19, 2001
Messages
118
I have a lable which runs a process. I want it to change colour on mouse move. i put this code in but it doesnt work. Can any one tell me where Im going Wrong .

thanks

Private Sub lblPage1Label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Me![lblPage1Label1].BorderColor = RGB(250, 118, 0)
End Sub
 
Hi,

Try this code

me.lblPage1Label1.BorderStyle = 1 'Solid
Me.lblPage1Label1.BorderColor = RGB(250, 118, 0)

The property for BorderStyle for a label defaults to Transparent i.e. no border so the first line of code essentially makes it visible and then you can change the colour.

HTH
Rob
 

Users who are viewing this thread

Back
Top Bottom