0

I'm programming IDE/interpreter/debugger for various esoteric languages. I would like to be able to bold one character at a time, in varying places (depending on code flow), for the debugger. I'm using WinForms for that. So in short, I would need to be able to bold one character of the text and send it to label. Thanks in advance.

JaniM
  • 1
  • This is actually pretty hard to do, you can't get the required accuracy out of TextRenderer.MeasureText if the surrounding text should look smooth without gaps. It certainly isn't possible with Label, only RichTextBox can do it automatically. You'll fight this for a while if you override OnPaint(). – Hans Passant Jul 31 '12 at 13:18

1 Answers1

0

You should have to paint/draw text using GDI API - handle paint event or override onPaint().

KV Prajapati
  • 93,659
  • 19
  • 148
  • 186