Changing height of Font

  • Thread starter Thread starter Michael Dorrian
  • Start date Start date
M

Michael Dorrian

I want to change the height of the font to fit a textbox. I want to know
the ways to do this in C#.
 
Michael said:
I want to change the height of the font to fit a textbox. I want to know
the ways to do this in C#.




Don't just participate in USENET...get rewarded for i t!

Just have a small function that iteratively measures the text using
Graphics.MeasureString and increases/decreases the point size of the
font fractionally until a maximum font size that fits is found.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top