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. The Lounge
  3. Winforms resizing based on screen size

Winforms resizing based on screen size

Scheduled Pinned Locked Moved The Lounge
csharpwinformstoolsjson
4 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.
  • S Offline
    S Offline
    Slow Eddie
    wrote on last edited by
    #1

    Many years in the past I used a product VBGold Resizer. It worked extremely well for all of my VB6 forms. You could drop the tool on the form and it would handle the rest. It really helps with productivity. Went to their website and their control for Dot Net runs on net 3.5. only. I am looking for a product that does the same things but works with the latest versions of Dot.Net If you know of one, or a book on how to accomplish this in code (Identifying the screen size, Resolution, component size and adjusting them all automatically), please let me know.

    ed

    R 1 Reply Last reply
    0
    • S Slow Eddie

      Many years in the past I used a product VBGold Resizer. It worked extremely well for all of my VB6 forms. You could drop the tool on the form and it would handle the rest. It really helps with productivity. Went to their website and their control for Dot Net runs on net 3.5. only. I am looking for a product that does the same things but works with the latest versions of Dot.Net If you know of one, or a book on how to accomplish this in code (Identifying the screen size, Resolution, component size and adjusting them all automatically), please let me know.

      ed

      R Offline
      R Offline
      RickZeeland
      wrote on last edited by
      #2

      Not quite what you are looking for maybe, but in this CodeProject example you can see a simple way for resizing a form depending on the font size: RoundedButton Control - Demystifying DrawArc[^]

      // Scale form, AutoScaleMode.Font must be set for this to work.
      this.Font = new Font(this.Font.Name, this.Font.Size + 2);

      I tried many complicated examples which did not work, but this simple way works for me.

      S S 2 Replies Last reply
      0
      • R RickZeeland

        Not quite what you are looking for maybe, but in this CodeProject example you can see a simple way for resizing a form depending on the font size: RoundedButton Control - Demystifying DrawArc[^]

        // Scale form, AutoScaleMode.Font must be set for this to work.
        this.Font = new Font(this.Font.Name, this.Font.Size + 2);

        I tried many complicated examples which did not work, but this simple way works for me.

        S Offline
        S Offline
        Slow Eddie
        wrote on last edited by
        #3

        Thank you.

        ed

        1 Reply Last reply
        0
        • R RickZeeland

          Not quite what you are looking for maybe, but in this CodeProject example you can see a simple way for resizing a form depending on the font size: RoundedButton Control - Demystifying DrawArc[^]

          // Scale form, AutoScaleMode.Font must be set for this to work.
          this.Font = new Font(this.Font.Name, this.Font.Size + 2);

          I tried many complicated examples which did not work, but this simple way works for me.

          S Offline
          S Offline
          Southmountain
          wrote on last edited by
          #4

          thanks for your great input. :rose: I saved your link for my use.

          diligent hands rule....

          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