CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 4 of 4
  1. #1
    Join Date
    Feb 2000
    Location
    Indiana USA
    Posts
    193

    Screen Resolution Size

    This question is not really related to VB, but hopefully if someone knows the cause, they can help me fix it in VB code.

    I have an application that needs the screen resolution size to be 800 X 600. I got help with code to change the size if it was different. I tested it on 5 different machines. But when I took the app out to customers, I ran into problems.

    First install (WIN 98), when my program changed the resolution, the whole screen was no longer used. The screen was displayed only in the upper right corner of the screen. I thought it was an error in my code, but when this customers, resolution is changed via the control panel Display tab from 640 X 480 to 800 X 600, the screen picture has the same results as my code, only showing in the upper right corner. The complete screen shows, it just looks really funny. Any idea of the cause? Or fix?

    Second install (WIN 98), my program looks for the resolution, and if any other then 800 X 600, it changes it, well on this machine, I ran the app, and my screens ran off the edge, so again I thought error in my code, but when I went to manually change the resolution, it was set at 800 X 600. So my app should have been fine, but it wasn't. Again, any thoughts.

    It is hard to fix things when they work on all the machines you have available to you, just not the machines that matter (the customers!)

    Thanks for any help

    Catrina


  2. #2
    Join Date
    Jul 2000
    Location
    Milano, Italy
    Posts
    7,726

    Re: Screen Resolution Size

    I assume you already have done this, to set the screen resolution first, then to check via code for position of your forms on screen...Did you? Secondly, I assume you have checked your customer settings of display accept to make changes without needing of restart PC...
    If so, I am afraid I cannot help more.
    Best regards,
    Cesare Imperiali

    Special thanks to Lothar "the Great" Haensler. Come back soon, you Guru.
    ...at present time, using mainly Net 4.0, Vs 2010



    Special thanks to Lothar "the Great" Haensler, Chris Eastwood , dr_Michael, ClearCode, Iouri and
    all the other wonderful people who made and make Codeguru a great place.
    Come back soon, you Gurus.

  3. #3
    Join Date
    Aug 2000
    Location
    KY
    Posts
    766

    Re: Screen Resolution Size

    The method you choose to change the users screen resolution is going to bit you in the field as you are finding out. When you do this on a Flat panel display the resolution will change and the screen size will get smaller and there is no fix for this. So if a Customer has a 15 in flat panel screen that displays 1200 X 1600 and you change the res to 800 X 600 the display will end virtually unreadable. The longer term solution is to add resizing code to allow your app to fit any screen display. There are many classes that will do a lot of the work for you, the best one I have found is at http://www.**************/HtmlDoc.asp...Articles&ID=70


  4. #4
    Join Date
    Apr 2000
    Location
    Texas
    Posts
    7

    Re: Screen Resolution Size

    I know this message is ancient, but on the off chance that I can still help someone (plus the fact that I've never contributed before), here goes:

    I had this exact problem, and figured out that the user had "Large Fonts" enabled under Display Settings -> Settings -> Advanced, instead of the standard "Small Fonts". The font size totally messed up my screens..

    When changing resolution, maybe there is a way to change that setting as well..?

    Fred Hanson


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

Featured