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. Resize of Form according to System Resolution

Resize of Form according to System Resolution

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

    I have created a form in the Resolution of my system as 1024 X 768 Pixels. But when I submit the project at the client side the Resolution is some 800 X 600 Pixels. In some other different Resolution is there. How can I change my Form Dynamically according to the Resolution present in the System where we are using. Thanx in advance

    Priya

    M S P 3 Replies Last reply
    0
    • P Priya_2007

      I have created a form in the Resolution of my system as 1024 X 768 Pixels. But when I submit the project at the client side the Resolution is some 800 X 600 Pixels. In some other different Resolution is there. How can I change my Form Dynamically according to the Resolution present in the System where we are using. Thanx in advance

      Priya

      M Offline
      M Offline
      Mogtabam
      wrote on last edited by
      #2

      Hi This May Useful for you. Width Of Screen In Pixel: Screen.Width / Screen.TwipsPerPixelX Height Of Screen In Pixel: Screen.Height / Screen.TwipsPerPixelY For Example : Private Sub Form_Load() Me.Width = Screen.Width Me.Height = Screen.Height Me.Top = 0 Me.Left = 0 End Sub Good Luck Mogtabm

      1 Reply Last reply
      0
      • P Priya_2007

        I have created a form in the Resolution of my system as 1024 X 768 Pixels. But when I submit the project at the client side the Resolution is some 800 X 600 Pixels. In some other different Resolution is there. How can I change my Form Dynamically according to the Resolution present in the System where we are using. Thanx in advance

        Priya

        S Offline
        S Offline
        sathish s
        wrote on last edited by
        #3

        Go for Javascript (screen.width,screen.height), find the client's screen resolution and route him to a suitable page.. http://molly.com/articles/markupandcss/1999-09-route.php[^]

        1 Reply Last reply
        0
        • P Priya_2007

          I have created a form in the Resolution of my system as 1024 X 768 Pixels. But when I submit the project at the client side the Resolution is some 800 X 600 Pixels. In some other different Resolution is there. How can I change my Form Dynamically according to the Resolution present in the System where we are using. Thanx in advance

          Priya

          P Offline
          P Offline
          Priya_2007
          wrote on last edited by
          #4

          I have created a form in the Resolution of my system as 1024 X 768 Pixels. But when I submit the project at the client side the Resolution is some 800 X 600 Pixels. In some other different Resolution is there. How can I change my Form Dynamically according to the Resolution present in the System where we are using. When I Use this Code: Width Of Screen In Pixel: Screen.Width / Screen.TwipsPerPixelX Height Of Screen In Pixel: Screen.Height / Screen.TwipsPerPixelY For Example : Private Sub Form_Load() Me.Width = Screen.Width Me.Height = Screen.Height Me.Top = 0 Me.Left = 0 End Sub Displaying of Form is OK. But controls are missing. What I need is It has to adjust the controls also according to the System Resolution and all the content present in the Form should be displayed in the Resolution present in the System. controls as well as form should be resized according to the System resolution.

          Priya

          M M 2 Replies Last reply
          0
          • P Priya_2007

            I have created a form in the Resolution of my system as 1024 X 768 Pixels. But when I submit the project at the client side the Resolution is some 800 X 600 Pixels. In some other different Resolution is there. How can I change my Form Dynamically according to the Resolution present in the System where we are using. When I Use this Code: Width Of Screen In Pixel: Screen.Width / Screen.TwipsPerPixelX Height Of Screen In Pixel: Screen.Height / Screen.TwipsPerPixelY For Example : Private Sub Form_Load() Me.Width = Screen.Width Me.Height = Screen.Height Me.Top = 0 Me.Left = 0 End Sub Displaying of Form is OK. But controls are missing. What I need is It has to adjust the controls also according to the System Resolution and all the content present in the Form should be displayed in the Resolution present in the System. controls as well as form should be resized according to the System resolution.

            Priya

            M Offline
            M Offline
            Mogtabam
            wrote on last edited by
            #5

            Hi For Resizing Controls You Can Use "Microsoft Forms2" You Can Resize Zoom In & Zoom Out In Microsoft Forms2 Components. But I don't Remember How You Can Resize Or Zoom In & Zoom Out. If I Remember I Will Send You An Example Code. Good Luck. Mogtabam

            1 Reply Last reply
            0
            • P Priya_2007

              I have created a form in the Resolution of my system as 1024 X 768 Pixels. But when I submit the project at the client side the Resolution is some 800 X 600 Pixels. In some other different Resolution is there. How can I change my Form Dynamically according to the Resolution present in the System where we are using. When I Use this Code: Width Of Screen In Pixel: Screen.Width / Screen.TwipsPerPixelX Height Of Screen In Pixel: Screen.Height / Screen.TwipsPerPixelY For Example : Private Sub Form_Load() Me.Width = Screen.Width Me.Height = Screen.Height Me.Top = 0 Me.Left = 0 End Sub Displaying of Form is OK. But controls are missing. What I need is It has to adjust the controls also according to the System Resolution and all the content present in the Form should be displayed in the Resolution present in the System. controls as well as form should be resized according to the System resolution.

              Priya

              M Offline
              M Offline
              M Hall
              wrote on last edited by
              #6

              What I have done in the past is design the form at the lowest usable resolution, then in the same routine that sets the size of the form I figure out the difference in the screen sizes and iterate through the forms control collection and set the position and size to what I want it to be. You also will need to adjust your font size for each control -- modified at 12:32 Monday 12th March, 2007

              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