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. Screen Sizing

Screen Sizing

Scheduled Pinned Locked Moved Visual Basic
csharpquestion
8 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.
  • S Offline
    S Offline
    Silver Grey
    wrote on last edited by
    #1

    Is there a way to program in vb.net for different screen sizes and resolutions ???

    silver-gray

    R 1 Reply Last reply
    0
    • S Silver Grey

      Is there a way to program in vb.net for different screen sizes and resolutions ???

      silver-gray

      R Offline
      R Offline
      Ray Cassick
      wrote on last edited by
      #2

      I always try to program for the smallest and then make the forms resizable upwards if the users wants to. They key to this is deciding what is the lowest res you will aim for. Lately I have been selecting 800x600 instead of 640x480. Does Vista even support 640x480 anymore?


      My Blog[^]
      FFRF[^]


      M L S 3 Replies Last reply
      0
      • R Ray Cassick

        I always try to program for the smallest and then make the forms resizable upwards if the users wants to. They key to this is deciding what is the lowest res you will aim for. Lately I have been selecting 800x600 instead of 640x480. Does Vista even support 640x480 anymore?


        My Blog[^]
        FFRF[^]


        M Offline
        M Offline
        MatrixCoder
        wrote on last edited by
        #3

        Ray Cassick wrote:

        Does Vista even support 640x480 anymore?

        Yes they do.

        1 Reply Last reply
        0
        • R Ray Cassick

          I always try to program for the smallest and then make the forms resizable upwards if the users wants to. They key to this is deciding what is the lowest res you will aim for. Lately I have been selecting 800x600 instead of 640x480. Does Vista even support 640x480 anymore?


          My Blog[^]
          FFRF[^]


          L Offline
          L Offline
          Leah_Garrett
          wrote on last edited by
          #4

          Ray Cassick wrote:

          I always try to program for the smallest and then make the forms resizable upwards if the users wants to.

          I use this technique too. Luckily was told that I did not need to support resolutions below 1024x768 so I had more space to play with. :) Making forms cope sensibly with resizing can be interesting. Using anchor is limited. I used "Top, Left, Right " anchor for a text box and a user in UAT complained that the user interface looked horrible. She was always maximising her window and ended up with way wider text boxes then required. So I put in a minimum and maximum window size to make sure the display always looked sensible. If you are using .Net 2.0 you could also look at using the various flow layout options available in Windows Forms.

          1 Reply Last reply
          0
          • R Ray Cassick

            I always try to program for the smallest and then make the forms resizable upwards if the users wants to. They key to this is deciding what is the lowest res you will aim for. Lately I have been selecting 800x600 instead of 640x480. Does Vista even support 640x480 anymore?


            My Blog[^]
            FFRF[^]


            S Offline
            S Offline
            Silver Grey
            wrote on last edited by
            #5

            Are you saying that re-sizing is a manual thing? or is there a way to programmaticlly change it under the covers ??

            silver-gray

            R 1 Reply Last reply
            0
            • S Silver Grey

              Are you saying that re-sizing is a manual thing? or is there a way to programmaticlly change it under the covers ??

              silver-gray

              R Offline
              R Offline
              Ray Cassick
              wrote on last edited by
              #6

              There are a few ways to do it (anchoring, code, layout panels, etc...) but it all takes some intervention on the part of the developer to implement it.


              My Blog[^]
              FFRF[^]


              S 1 Reply Last reply
              0
              • R Ray Cassick

                There are a few ways to do it (anchoring, code, layout panels, etc...) but it all takes some intervention on the part of the developer to implement it.


                My Blog[^]
                FFRF[^]


                S Offline
                S Offline
                Silver Grey
                wrote on last edited by
                #7

                can you please elaborate. what do you mean "(anchoring, code,layout panels,etc)" Thanks

                silver-gray

                R 1 Reply Last reply
                0
                • S Silver Grey

                  can you please elaborate. what do you mean "(anchoring, code,layout panels,etc)" Thanks

                  silver-gray

                  R Offline
                  R Offline
                  Ray Cassick
                  wrote on last edited by
                  #8

                  By 'anchoring' I mean the use of the anchor properties of controls placed on a form to allow them to attach to one area and then stretch in another direction when the form gets re-sized. Works OK for basic stuff but complicated forms can cause issues. By 'code' I mean capturing the current size of the form in the appropriate events and then manually resizing the controls using pure code. Lots of work and very hard to get right. It also tends to result in very 'brittle' code when you need to make changes in the design latter on. By 'Layout Panels' I mean placing a layout panel on the form and then allowing that to adjust the size of container controls. Good luck, and run a search or two in Google to get the rest. Sorry for being sketchy here, but this is one area where I could go done a slippery slope and end up writing code that I don't care to right for you. This is a 'give a man a fish vs. teach a man to fish' thing. Hope you understand.


                  My Blog[^]
                  FFRF[^]


                  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