V
vooose
Consider a RichTextBox which is say 200 pixels wide and you do:
richTextBox.WordWrap = false;
richTextBox.Rtf = <lots of text>
Assume the width of the rendered text is wider than 200 pixels so
horizontal scroll bars appear. How do you determine the actual size of
the text area? (so that you can determine the size richTextBox must be
to NOT show the scroll bars)
richTextBox.WordWrap = false;
richTextBox.Rtf = <lots of text>
Assume the width of the rendered text is wider than 200 pixels so
horizontal scroll bars appear. How do you determine the actual size of
the text area? (so that you can determine the size richTextBox must be
to NOT show the scroll bars)