VBcoders Guest



Don't have an account yet? Register
 


Forgot Password?



To Diplay a Command Button differently when the mouse is Over it. Simple Code

by Gulzar (3 Submissions)
Category: Custom Controls/Forms/Menus
Compatability: VB 6.0
Difficulty: Unknown Difficulty
Originally Published: Tue 16th March 2004
Date Added: Mon 8th February 2021
Rating: (1 Votes)

To Diplay a Command Button differently when the mouse is Over it. Simple Code

API Declarations


'When the Mouse is over the Command button It is becomes Bold and font size is
'Increase by 1. When it leaves from Button it is back to Normal.
' Take a command Button and Paste the code.

Rate To Diplay a Command Button differently when the mouse is Over it. Simple Code



If Command1.FontBold = False Then
    Command1.FontBold = True
    Command1.FontSize = 12
End If
End Sub
Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Command1.FontBold = True Then
    Command1.FontBold = False
    Command1.FontSize = 10
End If
End Sub


Download this snippet    Add to My Saved Code

To Diplay a Command Button differently when the mouse is Over it. Simple Code Comments

No comments have been posted about To Diplay a Command Button differently when the mouse is Over it. Simple Code. Why not be the first to post a comment about To Diplay a Command Button differently when the mouse is Over it. Simple Code.

Post your comment

Subject:
Message:
0/1000 characters