Shah,
No, and it wouldn't be a good idea to do it anyway. Most people set their resolution the way they want and it's a bit rude to consider changing it on them - especially since this affects ALL other Windows applications. Additionally, not all hardware - video cards or monitors - support all resolutions, you could actually cause permanent damage if you did change it.
It's a much better idea to use the sysmetric() function to check the current screen resolution and deny access to your program if they aren't set high enough. That way the user can decide if they really want to run your application. Some sample code that I've used in FPW -> VFP is:
set library to foxtools && necessary if you are running FPW and want to use the native MessageBox() display
IF sysmetric(1) < 800 or sysmetric(2) < 600
=MSGBOX("This program requires at least 800x600 resolution", "Please Note", 0+16+4096)
RETURN
ENDIF
Rick
<shahjagat (AT) aol (DOT) com> wrote
Quote:
Hello -
We have a FPW 2.6 application. This application needs the screen
resolution to be 1024X768 in order for the screens and forms to appear
right.
Is there any way to manipulate the display settings on a client machine
thru the application to change the resolution to this value and set it
back to whatever value they had once the user quits the program.
Shah |