Why is windows forms controls bolding so hard?

  • Thread starter Thread starter Tom
  • Start date Start date
T

Tom

Why are fonts so hard to use in .NET? All I want to do is bold the font in
runtime - yet, xxx.xxx.Font.Bold is readonly. The only way I can see to bold
a font for anything at run time is to change the font to a whole NEW font;
i.e., for my listview subitem I have to say:

lst.SubItems(6).Font = New System.Drawing.Font(lst.SubItems(6).Font,
Drawing.FontStyle.Bold)

Again, I don't want to change the font itself, just make it bold (or
italic).

Is this the only way to do it? Or am I missing an easier way? Thanks.

Tom
 
* "Tom said:
Why are fonts so hard to use in .NET? All I want to do is bold the font in
runtime - yet, xxx.xxx.Font.Bold is readonly. The only way I can see to bold
a font for anything at run time is to change the font to a whole NEW font;
i.e., for my listview subitem I have to say:

lst.SubItems(6).Font = New System.Drawing.Font(lst.SubItems(6).Font,
Drawing.FontStyle.Bold)

Again, I don't want to change the font itself, just make it bold (or
italic).

The bold version of the font is (often) another font.
 
Back
Top