Results 1 to 5 of 5

Thread: Changing windows resolution

  1. #1

    Thread Starter
    Hyperactive Member segrobiur's Avatar
    Join Date
    May 2004
    Location
    Portugal
    Posts
    371

    Changing windows resolution

    Hi there,

    I've been trying to develop an application using the resolution of 1024x768. However when I use it in another computer (with another resolution) I do not obtain the results I would like..

    Is there an easy way to change the windows res on entering the program to 1024x768 and returning to the original once you close the application?

    (I've been looking on MSDN and no success so far )

    Thanks in advance,

  2. #2
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926

    Re: Changing windows resolution

    Yes, it is possible, but it shouldn't be done.
    - Your program is not the only program that runs. If you change the resolution, it is not only for your program, but for complete windows.
    - Not all display adapters will support all resolutions.
    - Depending on the windows version, you may have to reboot after changing the resolution.
    - Most TFT screens only function well with a specific resolution. If you change it, the display can be blurry.
    - It should be the user who decides which resolution to use, not a program.
    Frans

  3. #3
    old fart Frans C's Avatar
    Join Date
    Oct 1999
    Location
    the Netherlands
    Posts
    2,926

    Re: Changing windows resolution

    If you still would like to change the resolution, have a look at this thread
    Frans

  4. #4

    Thread Starter
    Hyperactive Member segrobiur's Avatar
    Join Date
    May 2004
    Location
    Portugal
    Posts
    371

    Re: Changing windows resolution

    In a way I agree with you.. but most applications you see nowadays set the res they want (probably all games).. of course they use full screen and when you leave the application they return to the original res (...if the computer supports the res)... that is mainly what I want to do (except the full screen part)... although it may be weird to do it using a window....

    ... this happens because I don't redimention the objects and now it's to late to do it...

  5. #5
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: Changing windows resolution

    but most applications you see nowadays set the res they want
    Only full screen applications (almost all of them games) do this, and there are many good reasons for it, including those listed by Frans C - not least of which being the rudeness of doing something unwanted to the users computer (if your program crashes, they are stuck in the wrong res.).

    Do your reputation a favour, and spend a few minutes writing code to resize & move the controls. See the Classic VB FAQ (link below) for a thread with explanations and examples.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width