• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 291
  • Last Modified:

FORCE IN VB6 SCREENSETTINGS

Due to the application, I want to force a users-screen when he starts his program to
the following,  (assuming his comp. has this available)

True color 32 bit,      1024 x 768  pixels,   large fonts 125% (120 dpi),
apply without asking or rebooting.

0
BIAPRO
Asked:
BIAPRO
  • 3
  • 3
1 Solution
 
AlexFMCommented:
Changing display settings:

http://www.angelfire.com/biz/rhaminisys/tricks.html

Scroll to the end and downlad file dsplmode.zip from Server 2 (Sample project to change the display mode).

I don't know how to set large fonts, I will try to find something.
0
 
BIAPROAuthor Commented:
Ok, I can set to  1024 x 768  pixels,
Now also if you could give a solution for the function:   large fonts 125% (120 dpi),
my programs will allways show right fonts,
Thanks sofar
0
 
AlexFMCommented:
Unfortunately, I don't know how to do this. But I am sure that this is impossible without reboot - Windows requires reboot when these settings are changed manually.
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
BIAPROAuthor Commented:
ok, I understand, Thanks anyway
0
 
AlexFMCommented:
It is possible to detect DPI settings:
http://www.experts-exchange.com/Programming/Programming_Languages/MFC/Q_20723666.html

C++:

int sx = pdc->GetDeviceCaps(LOGPIXELSX);
if(sx == 96)
 //normal
else
  if(sx == 120)
   //large font

You can rewrite this in VB using API call. At least, you can ask user to set required font manually.
0
 
BIAPROAuthor Commented:
Will try this , thanks
Jack
0

Featured Post

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

  • 3
  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now