K
kiranreddyd
Hi,
I have a control that render text. This is done in OnPaint()
override by drawing the text. When the control is resized, the text
inside it should also be resized according to the size of the control.
Either height of the text or width of the text or both need to be
resized. So I need to determine the font size based on the current
client rectangle. How do I do this? Is there any other way of resizing
the text?
I am using .Net 2.0. Your help is highly appreciated.
Thanks in Advance.
Regards
Kiran
I have a control that render text. This is done in OnPaint()
override by drawing the text. When the control is resized, the text
inside it should also be resized according to the size of the control.
Either height of the text or width of the text or both need to be
resized. So I need to determine the font size based on the current
client rectangle. How do I do this? Is there any other way of resizing
the text?
I am using .Net 2.0. Your help is highly appreciated.
Thanks in Advance.
Regards
Kiran