The RTB won't do that. You'd have to write your own version of the control and it won't be easy. The problem is that as your custom drawing your RTB, you have to measure a string in a font size and see how big the resulting bitmap image would be. If it's not big enough, or small enough, you have to create a new Font object to test and call MeasureString again, until you achieve the fit you want. This is complicated by the fact that you still want WordWrap to work... Oh, and the RTB doesn't consider one line of text on screen a single line. A single line of text wraps and keeps wrapping until a line break is hit. So, how many lines of text on screen are in that string?? See the problem??
A guide to posting questions on CodeProject[^]
Dave Kreskowiak