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. Problem when Resoluction Change

Problem when Resoluction Change

Scheduled Pinned Locked Moved Visual Basic
helptutorial
9 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.
  • L Offline
    L Offline
    Lost User
    wrote on last edited by
    #1

    When i m changing my system Resoluction then my software controls are not viewing. Suggest me how to set resoluction setting for my application. Thanks

    If you can think then I Can.

    J 1 Reply Last reply
    0
    • L Lost User

      When i m changing my system Resoluction then my software controls are not viewing. Suggest me how to set resoluction setting for my application. Thanks

      If you can think then I Can.

      J Offline
      J Offline
      Johan Hakkesteegt
      wrote on last edited by
      #2

      try out My.Computer.Screen

      My advice is free, and you may get what you paid for.

      L 1 Reply Last reply
      0
      • J Johan Hakkesteegt

        try out My.Computer.Screen

        My advice is free, and you may get what you paid for.

        L Offline
        L Offline
        Lost User
        wrote on last edited by
        #3

        Getting Computer Resoluction is not my Problem. My problem is that how to Manage software for diffrent resoluction and DPI.

        If you can think then I Can.

        J 1 Reply Last reply
        0
        • L Lost User

          Getting Computer Resoluction is not my Problem. My problem is that how to Manage software for diffrent resoluction and DPI.

          If you can think then I Can.

          J Offline
          J Offline
          Johan Hakkesteegt
          wrote on last edited by
          #4

          If you can retrieve the resolution, of the screen, then you could build your GUI dynamically. Use relational sizing for your controls (and font sizes where necessary) and add them to the form at runtime. Alternatively you could spread out your controls over multiple forms, that you call when necessary, or over a tab control.

          My advice is free, and you may get what you paid for.

          L 1 Reply Last reply
          0
          • J Johan Hakkesteegt

            If you can retrieve the resolution, of the screen, then you could build your GUI dynamically. Use relational sizing for your controls (and font sizes where necessary) and add them to the form at runtime. Alternatively you could spread out your controls over multiple forms, that you call when necessary, or over a tab control.

            My advice is free, and you may get what you paid for.

            L Offline
            L Offline
            Lost User
            wrote on last edited by
            #5

            My application is simple dialog which size is 867, 666. but when i am changes it's DPI 120 then its Controls are not showing which are standing in the Buttom of Form.

            If you can think then I Can.

            J 1 Reply Last reply
            0
            • L Lost User

              My application is simple dialog which size is 867, 666. but when i am changes it's DPI 120 then its Controls are not showing which are standing in the Buttom of Form.

              If you can think then I Can.

              J Offline
              J Offline
              Johan Hakkesteegt
              wrote on last edited by
              #6

              Dim g As Graphics = Graphics.FromHwnd(Me.Handle)
              MsgBox("DPI Value: " & g.DpiX.ToString())

              This bit of code will get you the DPI setting of the machine your app is running on. Maybe you can use this, when you calculate the size of your controls and fonts

              My advice is free, and you may get what you paid for.

              L 1 Reply Last reply
              0
              • J Johan Hakkesteegt

                Dim g As Graphics = Graphics.FromHwnd(Me.Handle)
                MsgBox("DPI Value: " & g.DpiX.ToString())

                This bit of code will get you the DPI setting of the machine your app is running on. Maybe you can use this, when you calculate the size of your controls and fonts

                My advice is free, and you may get what you paid for.

                L Offline
                L Offline
                Lost User
                wrote on last edited by
                #7

                I am using this code.But my form height is not incresing.

                If you can think then I Can.

                L 1 Reply Last reply
                0
                • L Lost User

                  I am using this code.But my form height is not incresing.

                  If you can think then I Can.

                  L Offline
                  L Offline
                  LCARS x32
                  wrote on last edited by
                  #8

                  I had a similar problem. Set the "AutoScaleMode" property of the form to "Off". When you change the DPI, it's auto-scaling your controls and causing them to display incorrectly. Hope that helps, -Ray

                  L 1 Reply Last reply
                  0
                  • L LCARS x32

                    I had a similar problem. Set the "AutoScaleMode" property of the form to "Off". When you change the DPI, it's auto-scaling your controls and causing them to display incorrectly. Hope that helps, -Ray

                    L Offline
                    L Offline
                    Lost User
                    wrote on last edited by
                    #9

                    I have generate one more problem. I am creating Control at runtime in 96 DPI it shows normally. but when i am changing DPI 120 controls are moving thereware.

                    If you can think then I Can.

                    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