How to make Scale method scale fonts in contained controls
Posted on 2008-06-19
I have a custom control (i.e. inherited from Control) that contains a Label. When I apply the Scale method to this custom control, all of the contained controls also scale as expected. However, the Label's Font does not scale. I have an old vb.net (also v1.1) application that contains a similar custom control. This control contains another custom control that contains a Label. In this case the Label's Font size does change when the Scale method is applied to the outermost control.
This makes me think that it must be possible to make the Font scale with the size of the control, but though I have studied it in detail, I cannot find the difference between my new custom control and the custom control in this older application that causes its contained fonts to scale.
Is there something obvious that I am overlooking?
Thanks for any suggestions.