Formating text

propagandhi

Member
Joined
Feb 20, 2005
Messages
18
Programming Experience
Beginner
I did a search on how to set the text property of label to bold, the responses didnt seem to help or appeared rather complicated. I took vb6 in highschool 4 years ago and remeber it as beign rather simple. Any help is greatly appreciated.
 

Paszt

Staff member
Joined
Jun 3, 2004
Messages
1,500
Location
Raleigh, NC - USA
Programming Experience
Beginner
You can also use a different overloaded font constructor as follows:
VB.NET:
'set the labels font to the existing font only bold now:
myLabel.Font = New Font(myLabel.Font, FontStyle.Bold)
'set the label's font to the existing font and make it bold and italic:
myLabel.Font = New Font(myLabel.Font, FontStyle.Bold Or FontStyle.Italic)
 
Top Bottom