Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Visual Basic
  4. Need quick resolution solution - going from 1280x768 to 800x600

Need quick resolution solution - going from 1280x768 to 800x600

Scheduled Pinned Locked Moved Visual Basic
helpquestion
6 Posts 4 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • H Offline
    H Offline
    Hypermommy
    wrote on last edited by
    #1

    Hi all, The clients didn't mention it and I forgot to ask. So everyone get out the wet noodles and beat me with them. Okay, now that we've properly assigned blame I'm hoping someone can help me. All the forms in my app have been designed at 1280x768. I need the application to also look right and fit on the screen at 800x600. Please tell me there's some quick solution? I tried using the me.scale property on the form and all its objects but that requires that I do something either with docking or anchoring. Is there a quick something out there that will check the resolution of the computer and resize the stuff on my forms and the forms themselves. And yes, I know all about people using a lower resolution because they want things bigger and all. But that's just not an option here. And the real reason we need it is because our program will be used in 3d world countries where my client's convinced they may only have the smaller resolution available to them. Help? Thanks in advance for any help you can give.

    Denise "Hypermommy" Duggan

    M J D 3 Replies Last reply
    0
    • H Hypermommy

      Hi all, The clients didn't mention it and I forgot to ask. So everyone get out the wet noodles and beat me with them. Okay, now that we've properly assigned blame I'm hoping someone can help me. All the forms in my app have been designed at 1280x768. I need the application to also look right and fit on the screen at 800x600. Please tell me there's some quick solution? I tried using the me.scale property on the form and all its objects but that requires that I do something either with docking or anchoring. Is there a quick something out there that will check the resolution of the computer and resize the stuff on my forms and the forms themselves. And yes, I know all about people using a lower resolution because they want things bigger and all. But that's just not an option here. And the real reason we need it is because our program will be used in 3d world countries where my client's convinced they may only have the smaller resolution available to them. Help? Thanks in advance for any help you can give.

      Denise "Hypermommy" Duggan

      M Offline
      M Offline
      Moreno Airoldi
      wrote on last edited by
      #2

      If the app wasn't designed for runtime scaling from the beginning, I doubt there is any fast & easy way to change it: it should be re-designed. If that's not an option, then... One solution is to implement a loop on all the controls upon form loading and resize and reposition them. Drawback: the resized/repositioned layout will not be as neat as the original. Another solution, if your requirements are for two fixed resolutions, would be to manually design the form for both (in order to have a neat and good looking interface in both cases), leave it in one of the two layouts, and then switch to the second layout at runtime depending on the screen's resolution. Drawback: this would be a mess to manage for modifications. I like the 1st solution best. Hope this gives you some ideas. :)

      2+2=5 for very large amounts of 2 (always loved that one hehe!)

      1 Reply Last reply
      0
      • H Hypermommy

        Hi all, The clients didn't mention it and I forgot to ask. So everyone get out the wet noodles and beat me with them. Okay, now that we've properly assigned blame I'm hoping someone can help me. All the forms in my app have been designed at 1280x768. I need the application to also look right and fit on the screen at 800x600. Please tell me there's some quick solution? I tried using the me.scale property on the form and all its objects but that requires that I do something either with docking or anchoring. Is there a quick something out there that will check the resolution of the computer and resize the stuff on my forms and the forms themselves. And yes, I know all about people using a lower resolution because they want things bigger and all. But that's just not an option here. And the real reason we need it is because our program will be used in 3d world countries where my client's convinced they may only have the smaller resolution available to them. Help? Thanks in advance for any help you can give.

        Denise "Hypermommy" Duggan

        J Offline
        J Offline
        Johan Hakkesteegt
        wrote on last edited by
        #3

        I doubt there is anything readily available that combines those two. My.Computer.Screen.WorkingArea will give you the available desktop space. Next you'll probably have to loop through all controls, and scale them. It might be quicker to just anchor all your controls, and use me.scale

        My advice is free, and you may get what you paid for.

        1 Reply Last reply
        0
        • H Hypermommy

          Hi all, The clients didn't mention it and I forgot to ask. So everyone get out the wet noodles and beat me with them. Okay, now that we've properly assigned blame I'm hoping someone can help me. All the forms in my app have been designed at 1280x768. I need the application to also look right and fit on the screen at 800x600. Please tell me there's some quick solution? I tried using the me.scale property on the form and all its objects but that requires that I do something either with docking or anchoring. Is there a quick something out there that will check the resolution of the computer and resize the stuff on my forms and the forms themselves. And yes, I know all about people using a lower resolution because they want things bigger and all. But that's just not an option here. And the real reason we need it is because our program will be used in 3d world countries where my client's convinced they may only have the smaller resolution available to them. Help? Thanks in advance for any help you can give.

          Denise "Hypermommy" Duggan

          D Offline
          D Offline
          Dave Kreskowiak
          wrote on last edited by
          #4

          There is no easy quick fix for this. You application should have been designed with layout containers, docking, and anchoring from the start, even if the form isn't resizable. If it was, your solution wuold have been easy and quick. You have no choice but to re-engineer the layout of your forms, by hand.

          A guide to posting questions on CodeProject[^]
          Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
               2006, 2007, 2008
          But no longer in 2009...

          H 1 Reply Last reply
          0
          • D Dave Kreskowiak

            There is no easy quick fix for this. You application should have been designed with layout containers, docking, and anchoring from the start, even if the form isn't resizable. If it was, your solution wuold have been easy and quick. You have no choice but to re-engineer the layout of your forms, by hand.

            A guide to posting questions on CodeProject[^]
            Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                 2006, 2007, 2008
            But no longer in 2009...

            H Offline
            H Offline
            Hypermommy
            wrote on last edited by
            #5

            Where can I find out more about layout containers... starting with what they are, please? Thanks.

            Denise "Hypermommy" Duggan

            D 1 Reply Last reply
            0
            • H Hypermommy

              Where can I find out more about layout containers... starting with what they are, please? Thanks.

              Denise "Hypermommy" Duggan

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              They're all in the ToolBox, under the Containers tab. FlowLayoutPanel, Panel, TableLayoutPanel, GroupBox, SplitContainer, ... All you have to do is look up each control at MSDN[^].

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007, 2008
              But no longer in 2009...

              1 Reply Last reply
              0
              Reply
              • Reply as topic
              Log in to reply
              • Oldest to Newest
              • Newest to Oldest
              • Most Votes


              • Login

              • Don't have an account? Register

              • Login or register to search.
              • First post
                Last post
              0
              • Categories
              • Recent
              • Tags
              • Popular
              • World
              • Users
              • Groups