Link to home
Start Free TrialLog in
Avatar of clienttech
clienttech

asked on

Screen/Font Res Changes

I am trying to get an application to change the form/ control and font sizes, according to the screen res of the host machine.

I can get the current screen resolution and color depth, but I am stuck when it comes to changing the sizes and postions of the controls, and more so changing the size of the font.

Any help would be appreciated...
Avatar of mcrider
mcrider

Are you talking about "Large Font" vs. "Small Font"?
If you are, check out this microsoft KB Article:

HOWTO: Know if Large/Small Font Is in Use Under Win95/98/NT
http://support.microsoft.com/support/kb/articles/Q152/1/36.asp 
 

Cheers!

Hi clienttech,

I think screen resolution is a very classic matter for vb programmer's
there is so many question around this problem, particularly in EE.
but the answer is no.

actually there is 2 solution :
- change your client screen resolution and change it back after your program finished, but the problem, If the client monitor doesn't support for your screen resolution, beside People hate if you change their screen resolution.

- like you said, change all your control depend on screen resolution, but It also have problem, If you use so many control.

  danny
you could  use scaleheight and scalewidth propertties for you controls.
Avatar of clienttech

ASKER

I need my application to resize itself depending on the screen resolution, taking into account the font size as well.

I cannot change the client screen res, since my app will be working in conjuntion with several others. Besides, I think the users might complain!

Vin32:
Could you explain the use of scaleheight and scalewidth and how they might be of help to me.

Thanks to all for the quick response...
ASKER CERTIFIED SOLUTION
Avatar of waty
waty
Flag of Belgium 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
Waty: My thanks - Excellent!