Link to home
Start Free TrialLog in
Avatar of omegaomega
omegaomegaFlag for Canada

asked on

How to make Scale method scale fonts in contained controls

Hello, Experts,

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.

Cheers,
Randy
ASKER CERTIFIED SOLUTION
Avatar of omegaomega
omegaomega
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial