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.
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
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.