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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. General Programming
  3. Visual Basic
  4. Resizing Forms

Resizing Forms

Scheduled Pinned Locked Moved Visual Basic
help
3 Posts 3 Posters 1 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.
  • D Offline
    D Offline
    Dreamer2007
    wrote on last edited by
    #1

    Please, help me with code so that my forms will fit perfectly on different screen sizes and resolutions without being too small or too large. Sorry guys to bother you with questions from the dead VB 6.0. It’s what we still use this side of the world.

    D P 2 Replies Last reply
    0
    • D Dreamer2007

      Please, help me with code so that my forms will fit perfectly on different screen sizes and resolutions without being too small or too large. Sorry guys to bother you with questions from the dead VB 6.0. It’s what we still use this side of the world.

      D Offline
      D Offline
      Dave Kreskowiak
      wrote on last edited by
      #2

      Noone can give you any code. If this was VB.NET, all you would have to do is use the proper control containers and set the properties of the containers and controls to maintain the layout. No code required at all. Since you're using VB6, you have to write your own code to handle the Resize event of the form, then go through all the contorls on the form and recalculate new sizes and positions for every one of them. The code has to be written to maintain the layout how you want. Noone can write this for you. It has to be custom written for your layout. You have to figure out how you want the controls to resize and reposition relative to what points on the form or relative to other controls. Once you know that, you can do the math to move the controls and resize them if needed.

      A guide to posting questions on CodeProject[^]
      Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
           2006, 2007

      1 Reply Last reply
      0
      • D Dreamer2007

        Please, help me with code so that my forms will fit perfectly on different screen sizes and resolutions without being too small or too large. Sorry guys to bother you with questions from the dead VB 6.0. It’s what we still use this side of the world.

        P Offline
        P Offline
        Paul Conrad
        wrote on last edited by
        #3

        Dreamer2007 wrote:

        forms will fit perfectly

        What is your definition of "fitting perfectly"?

        "Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon

        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