Solved

How to make Scale method scale fonts in contained controls

Posted on 2008-06-19
1
373 Views
Last Modified: 2013-11-26
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
0
Comment
Question by:omegaomega
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
1 Comment
 
LVL 12

Accepted Solution

by:
omegaomega earned 0 total points
ID: 21825056
I found the answer shortly after posting.  

There was an override of ScaleCore in one of the ancestors of the older application's cusotom control that was adjusting the Fonts.  Easy, I guess.  (Don't know how I managed to miss it on my earlier searches.)  (There are only three ancestors between it and Control...)

Sorry for any inconvenience.

Cheers,
Randy
0

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

In my previous two articles we discussed Binary Serialization (http://www.experts-exchange.com/A_4362.html) and XML Serialization (http://www.experts-exchange.com/A_4425.html). In this article we will try to know more about SOAP (Simple Object Acces…
Parsing a CSV file is a task that we are confronted with regularly, and although there are a vast number of means to do this, as a newbie, the field can be confusing and the tools can seem complex. A simple solution to parsing a customized CSV fi…
If you're a developer or IT admin, you’re probably tasked with managing multiple websites, servers, applications, and levels of security on a daily basis. While this can be extremely time consuming, it can also be frustrating when systems aren't wor…
In this video, viewers will be given step by step instructions on adjusting mouse, pointer and cursor visibility in Microsoft Windows 10. The video seeks to educate those who are struggling with the new Windows 10 Graphical User Interface. Change Cu…

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question