VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



A HIGHLIGHTED LABEL

by SeeD (22 Submissions)
Category: Miscellaneous
Compatability: Visual Basic 3.0
Difficulty: Unknown Difficulty
Date Added: Wed 3rd February 2021
Rating: (14 Votes)

This code was publshed before, but this is a much simpler way. This code is very cool! When you move a mouse over a label, the text lights up! When you move your mouse off of the label, the text turns back to its original color. VERY COOL, VERY EASY!

Inputs
Follow these easy directions (o: 1) Start up a new project in your Vb. 2)Make a label. It doesn't matter what you change the caption to, but keep the text color black!

Rate A HIGHLIGHTED LABEL

'Put this into the Form_MouseMove.
 Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
 Label1.ForeColor = &H80000012&
 End Sub
'Ok, now stick this part into your Labels Label1_MouseMove
Private Sub Label1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
 Label1.ForeColor = &H000000FF&
End Sub

Download this snippet    Add to My Saved Code

A HIGHLIGHTED LABEL Comments

No comments have been posted about A HIGHLIGHTED LABEL. Why not be the first to post a comment about A HIGHLIGHTED LABEL.

Post your comment

Subject:
Message:
0/1000 characters