Change the font or size without change the style

Sprog

Member
Joined
Jul 24, 2006
Messages
24
Location
Patras, Greece
Programming Experience
3-5
I have a text that have both bold and regular text. If a user select a text that contains both of them, using:
VB.NET:
txtMain.SelectionFont = New Font(cmbFont.ControlText, cmbSize.SelectedItem)
it makes all regular. If i use
VB.NET:
txtMain.SelectionFont = New Font(cmbFont.ControlText, cmbSize.SelectedItem, FontStyle.Bold Or FontStyle.Regular)
then it makes all bold.

How can i change only the font or size but the style remains the same??? :confused: :confused: :confused:
 
Back
Top