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. How to resize the form and its controls according to the screen resolution

How to resize the form and its controls according to the screen resolution

Scheduled Pinned Locked Moved Visual Basic
csharpvisual-studiohelptutorial
5 Posts 3 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
    Hari Prasad Karnam
    wrote on last edited by
    #1

    Hi, I am using Visual Studio 2003. I had developed a project in VB.Net using 1024 * 768 Resolution in XP Operating System. My client wants the application to be displayed properly in any resolution of his choice. Even though i set the AUTOSCALE property of the form to TRUE. The Form is not resizing according to the resolution. Can You please help me out. Hari Prasad... -- modified at 4:01 Wednesday 15th March, 2006

    A G H 3 Replies Last reply
    0
    • H Hari Prasad Karnam

      Hi, I am using Visual Studio 2003. I had developed a project in VB.Net using 1024 * 768 Resolution in XP Operating System. My client wants the application to be displayed properly in any resolution of his choice. Even though i set the AUTOSCALE property of the form to TRUE. The Form is not resizing according to the resolution. Can You please help me out. Hari Prasad... -- modified at 4:01 Wednesday 15th March, 2006

      A Offline
      A Offline
      andreapv
      wrote on last edited by
      #2

      well... in my WF i have the same trouble but with a difference... in clients with the screen properties 96dpi my WF runs OK if the client setting is 120dpi the winform gone wrong... for exemple the datagrid are compressed and resized with some scrollbars.... why???? roberto baggio rules

      H 1 Reply Last reply
      0
      • H Hari Prasad Karnam

        Hi, I am using Visual Studio 2003. I had developed a project in VB.Net using 1024 * 768 Resolution in XP Operating System. My client wants the application to be displayed properly in any resolution of his choice. Even though i set the AUTOSCALE property of the form to TRUE. The Form is not resizing according to the resolution. Can You please help me out. Hari Prasad... -- modified at 4:01 Wednesday 15th March, 2006

        G Offline
        G Offline
        Garner T
        wrote on last edited by
        #3

        I have been watching this question since it appeared. When I write a program on my computer then try to run it on another one, it is always to big to fit on the screen. I have to crank my resolution down to write programs for other computers. When you buy a program it always seems to automaticly fit the screen of whattever computer that you run it on. I think that anyone who can answer this question will be helping more than the three of us! Thanks, Garner

        1 Reply Last reply
        0
        • H Hari Prasad Karnam

          Hi, I am using Visual Studio 2003. I had developed a project in VB.Net using 1024 * 768 Resolution in XP Operating System. My client wants the application to be displayed properly in any resolution of his choice. Even though i set the AUTOSCALE property of the form to TRUE. The Form is not resizing according to the resolution. Can You please help me out. Hari Prasad... -- modified at 4:01 Wednesday 15th March, 2006

          H Offline
          H Offline
          Hari Prasad Karnam
          wrote on last edited by
          #4

          Hi Guys, Well u can use the Anchor property to resolve this issue. By default the Anchor property is "Left,Top" for all the controls. Set this to "Left,Top,Right,Bottom" depending up on the position of the control where it is placed. HAVE A NICE TIME CODING. :) Regards.. Hari. Hari Prasad...

          1 Reply Last reply
          0
          • A andreapv

            well... in my WF i have the same trouble but with a difference... in clients with the screen properties 96dpi my WF runs OK if the client setting is 120dpi the winform gone wrong... for exemple the datagrid are compressed and resized with some scrollbars.... why???? roberto baggio rules

            H Offline
            H Offline
            Hari Prasad Karnam
            wrote on last edited by
            #5

            Hi Guys, Well u can use the Anchor property to resolve this issue. By default the Anchor property is "Left,Top" for all the controls. Set this to "Left,Top,Right,Bottom" depending up on the position of the control where it is placed. HAVE A NICE TIME CODING. :) Regards.. Hari. Hari Prasad...

            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