Me.Label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 12.0!,
System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point,
CType(0, Byte))
Whenever you can't do something in code that you do in the designer, look at
how the code in the designer does it. There is nothing special going on in
the "Windows Form Designer generated code" Whatever the designer can do,
you can do too.
Hope it helps
Chris
"Dave" <no****@yahoo.com> wrote in message
news:e3**************@TK2MSFTNGP11.phx.gbl...
How can I change the font size of a label?
I have:
Label1.Font.Size = "12"
but it's telling me that property 'Size' is readonly.
Thanks,
-Dave