Question Font.Charset Problem

aussierai

New member
Joined
Sep 25, 2008
Messages
1
Programming Experience
1-3
I have code in vb6 like this

txtName.Font.CharSet = 128

how do i set charset in Vb.net?
i tried
txtName.FontCharacterSet = 128
it didint work

does GdiCharSet solve this problem?

thanks
 

DiskJunky

Well-known member
Joined
Feb 10, 2006
Messages
72
Location
Ireland
Programming Experience
10+
the font properties are ReadOnly which forces you to create a new Font object. It's a pain in the bum but there you go. The code you're looking for is;

With TextBox1
.Font = New Font(.Font.Style, Font.Size, Font.Style, .Font.Unit, 128)
End With
 
Top Bottom