M Michael Dorrian Feb 3, 2004 #1 I want to change the height of the font to fit a textbox. I want to know the ways to do this in C#.
S Stephen Van Opdenbosch Feb 3, 2004 #2 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! Click to expand... 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.
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! Click to expand... 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.