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.
 
Back
Top