Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Dynamically sizing a RichTextBox

Status
Not open for further replies.

musik

Programmer
Nov 20, 2001
33
US
I have the need to resize a RichTextBox control based on its contents. Because it's rich text, the contents can be stored in many different fonts, point sizes, styles, etc. Does anyone know of a way to calculate/query/get/find/etc. the size (esp. vertical) of the text being displayed in a RichTextBox?

Thanks!
-musik
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top