VB6’s Label controls have a Property FontName, which allows you to set the font like this: lblTitle.FontName = "Arial Bold". Does C# have something similar?
I’m porting a database heavy program from VB6 to C#, and I get names of fonts like “Arial Bold” or “Garamond Italic” from the database and I’m supposed to set the font of some labels based on that text from the database.
Try to do it like this for example:
To set the font of the label to Arial Bold. In this example with a font size of 12.