Changing the look of command button

Changing the look of command button

This code will change the font of the command button to bold when the mouse moves over it and it will become default when the mouse moves out. You can change anything for command button or any other GUI control.  
---------------------------------
Put a commandbutton on the center of the form and put this code in:

Private Sub Command1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Command1.FontBold = True

End Sub

Private Sub Form_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Command1.FontBold = False
End Sub

You might also like...

Comments

 Abdul

Contribute

Why not write for us? Or you could submit an event or a user group in your area. Alternatively just tell us what you think!

Our tools

We've got automatic conversion tools to convert C# to VB.NET, VB.NET to C#. Also you can compress javascript and compress css and generate sql connection strings.

“Measuring programming progress by lines of code is like measuring aircraft building progress by weight.” - Bill Gates