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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. monitor resolution problem

monitor resolution problem

Scheduled Pinned Locked Moved Visual Basic
csharphelp
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.
  • H Offline
    H Offline
    hrishiS
    wrote on last edited by
    #1

    Hello to everyone, I am facing the following problem with Vb.Net2005 project for different resolution monitor. Initially I was doing my VB.net project using a 17 inch monitor. Now when I shifted my project to a flat LCD monitor with different resolution, my ALL CONTROLS POSITION ARE NOT LIKE BEFORE......In future I may have to shift my project to different monitor again. Moreover for deploying the project also, I don't know the resolution of clients monitor in advance.... Could anyone please give me solution for this. Thanks in advance I am a learner Always

    C P 2 Replies Last reply
    0
    • H hrishiS

      Hello to everyone, I am facing the following problem with Vb.Net2005 project for different resolution monitor. Initially I was doing my VB.net project using a 17 inch monitor. Now when I shifted my project to a flat LCD monitor with different resolution, my ALL CONTROLS POSITION ARE NOT LIKE BEFORE......In future I may have to shift my project to different monitor again. Moreover for deploying the project also, I don't know the resolution of clients monitor in advance.... Could anyone please give me solution for this. Thanks in advance I am a learner Always

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      Best bet is to buy a good VB.NET book. Read it. Look up 'dock' and 'anchor' in the index for how to lay out your controls so they resize for the form.

      Christian Graus Driven to the arms of OSX by Vista.

      H 1 Reply Last reply
      0
      • C Christian Graus

        Best bet is to buy a good VB.NET book. Read it. Look up 'dock' and 'anchor' in the index for how to lay out your controls so they resize for the form.

        Christian Graus Driven to the arms of OSX by Vista.

        H Offline
        H Offline
        hrishiS
        wrote on last edited by
        #3

        HI Christian, Thanks for your reply... I have at least 500 controls all over the project. Is there any way to do the same together or something like that.. Thanks

        I am a learner Always

        C 1 Reply Last reply
        0
        • H hrishiS

          Hello to everyone, I am facing the following problem with Vb.Net2005 project for different resolution monitor. Initially I was doing my VB.net project using a 17 inch monitor. Now when I shifted my project to a flat LCD monitor with different resolution, my ALL CONTROLS POSITION ARE NOT LIKE BEFORE......In future I may have to shift my project to different monitor again. Moreover for deploying the project also, I don't know the resolution of clients monitor in advance.... Could anyone please give me solution for this. Thanks in advance I am a learner Always

          P Offline
          P Offline
          praveenkumar palla
          wrote on last edited by
          #4

          Set the Anchor property for each control according to your design Your controls will be placed according to the resolution

          H 1 Reply Last reply
          0
          • H hrishiS

            HI Christian, Thanks for your reply... I have at least 500 controls all over the project. Is there any way to do the same together or something like that.. Thanks

            I am a learner Always

            C Offline
            C Offline
            Christian Graus
            wrote on last edited by
            #5

            No, of course not. What magical way would there be to do that, unless you just want them all to sit on the top left of the form. Buy that book, and next time, set these things as you work on the project.

            Christian Graus Driven to the arms of OSX by Vista.

            1 Reply Last reply
            0
            • P praveenkumar palla

              Set the Anchor property for each control according to your design Your controls will be placed according to the resolution

              H Offline
              H Offline
              hrishiS
              wrote on last edited by
              #6

              thanks praveen..... So can I just select all controls on the form and set the anchor? I am a learner Always

              D 1 Reply Last reply
              0
              • H hrishiS

                thanks praveen..... So can I just select all controls on the form and set the anchor? I am a learner Always

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

                No, you can't. The controls are already anchored, by default, to the top left corner of the form. Changing the anchor for all of the controls all at once will only cause you extreme grief. Really, anchoring and layouts should have been done eariler in the apps development. It sounds like you're missing proper anchoring and proper use of flow and table layout panel controls. The bottom line is that there is no easy way around your problem. Fixing this is going to take a lot of work that you simply cannot automate or do in a day or two.

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007, 2008

                H 1 Reply Last reply
                0
                • D Dave Kreskowiak

                  No, you can't. The controls are already anchored, by default, to the top left corner of the form. Changing the anchor for all of the controls all at once will only cause you extreme grief. Really, anchoring and layouts should have been done eariler in the apps development. It sounds like you're missing proper anchoring and proper use of flow and table layout panel controls. The bottom line is that there is no easy way around your problem. Fixing this is going to take a lot of work that you simply cannot automate or do in a day or two.

                  A guide to posting questions on CodeProject[^]
                  Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                       2006, 2007, 2008

                  H Offline
                  H Offline
                  hrishiS
                  wrote on last edited by
                  #8

                  thanks Dave, I think I will have to stick to not anchoring anything....no other go

                  I am a beginner

                  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