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. Windows Forms
  4. resize form and controls according to Screen resolutions

resize form and controls according to Screen resolutions

Scheduled Pinned Locked Moved Windows Forms
csharpjava
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.
  • I Offline
    I Offline
    i i i
    wrote on last edited by
    #1

    Thanks in advance is their any way to resize form and controls according to Screen resolutions without much hassle means instead of changing controls positions ans sizes manually , like in java their are scripts can we do it in vb.net

    Best Regards, SOFTDEV If you have knowledge, let others light their candles at it

    N D 2 Replies Last reply
    0
    • I i i i

      Thanks in advance is their any way to resize form and controls according to Screen resolutions without much hassle means instead of changing controls positions ans sizes manually , like in java their are scripts can we do it in vb.net

      Best Regards, SOFTDEV If you have knowledge, let others light their candles at it

      N Offline
      N Offline
      Natza Mitzi
      wrote on last edited by
      #2

      Learn the art of docking and padding of controls. I believe there are articles about it and once you learn it, it is not a hassle.

      Natza Mitzi
      Analysis Studio - Statistical Analysis

      I 1 Reply Last reply
      0
      • I i i i

        Thanks in advance is their any way to resize form and controls according to Screen resolutions without much hassle means instead of changing controls positions ans sizes manually , like in java their are scripts can we do it in vb.net

        Best Regards, SOFTDEV If you have knowledge, let others light their candles at it

        D Offline
        D Offline
        dan sh
        wrote on last edited by
        #3

        Use TableLayoutPanel. It is a great control to manage these kind of things. Make sure that: 1. Columns and rows have their heights and widths in % wherever required. 2. All the controls are anchored to all the sides of cell in which you keep them.

        50-50-90 rule: Anytime I have a 50-50 chance of getting something right, there's a 90% probability I'll get it wrong...!!

        1 Reply Last reply
        0
        • N Natza Mitzi

          Learn the art of docking and padding of controls. I believe there are articles about it and once you learn it, it is not a hassle.

          Natza Mitzi
          Analysis Studio - Statistical Analysis

          I Offline
          I Offline
          i i i
          wrote on last edited by
          #4

          i am not asking about form resize event like maximize or normal , i want screen to adjust in different resolution 1024 x 768 or 800 x 600 etc , like shrink or grow adjust according to resolution

          Best Regards, SOFTDEV If you have knowledge, let others light their candles at it

          N 1 Reply Last reply
          0
          • I i i i

            i am not asking about form resize event like maximize or normal , i want screen to adjust in different resolution 1024 x 768 or 800 x 600 etc , like shrink or grow adjust according to resolution

            Best Regards, SOFTDEV If you have knowledge, let others light their candles at it

            N Offline
            N Offline
            Natza Mitzi
            wrote on last edited by
            #5

            Hi, I am not sure that I get you right but if you want your application to change screen resolution : change screen resolution C# As for the shrink or grow, thre is the Form.AutoScaleMode which I haven't worked with.

            Natza Mitzi
            Analysis Studio - Statistical Analysis

            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