I'm assuming your program is a Winforms application. Otherwise, stop reading.
I won't give you a solution, but some advice:
- Put a label you don't use in your form.
- In the properties grid, change its font (typeface, color, weight, size, everything).
- Assuming your form is called "Form1", open the file "Form1.Designer.vb"
- Browse to the corresponding line, and read how it's done
- Copy, paste, edit...
I got this:
Me.myLabel.Font = New System.Drawing.Font("Lucida Handwriting", 9.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(177, Byte))
Me.myLabel.ForeColor = System.Drawing.Color.FromArgb(CType(CType(0, Byte), Integer), CType(CType(0, Byte), Integer), CType(CType(192, Byte), Integer))
Note that the designer uses
System.Drawing.Font
, not
System.Windows.Media.Fonts
.
Hope this helps,
Pablo.