click button bold
Visual Basic
2
Posts
2
Posters
0
Views
1
Watching
-
help me in making code for button when i click it first time the text become bold and click it second time it become normal or regular please help me in VB.net code zabsmarty
Define two vars
Dim fntBold As Font Dim fntNorm As Font
In your form load event:fntBold = New Font(Button4.Font, FontStyle.Bold) fntNorm = New Font(Button4.Font, FontStyle.Regular)
and in your button click event:If Button4.Font.Bold() Then Button4.Font = fntNorm Else Button4.Font = fntBold End If
Roy.