I want to make the font size of the output of a label smaller and bold as well. How do I code this in VB.net 2008?How do I change text properties in code in VB.net 2008?
Dim FontName As String = ';Arial';
Dim FontSize As Integer = 14
Dim FS As New Font(FontName, FontSize, FontStyle.Regular)
Label1.Font = FS
DaneHow do I change text properties in code in VB.net 2008?
'Font size is Single, so do the following:
Dim newSize As Single
newSize = Label1.Font.Size - 1.0F
Label1.Font = New Font (Label1.Font.Name, newSize, _
Font.Style.Bold)
No comments:
Post a Comment