?
Solved

How to make Scale method scale fonts in contained controls

Posted on 2008-06-19
1
Medium Priority
?
376 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

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Visualize your data even better in Access queries. Given a date and a value, this lesson shows how to compare that value with the previous value, calculate the difference, and display a circle if the value is the same, an up triangle if it increased…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses

777 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