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. Resizing a form

Resizing a form

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

    hello, i want to resize the form programmaticaly within the code. i want to add the height because a button will be visible. how can i make this happen?? the button will be hidden at first and the size will be 100 for instance and then when the user wants the button to be visible i want to make the form more much bigger ex: 150 height from 100! how can i make this pls!! someone help me :D Adrian De Battista

    T J 2 Replies Last reply
    0
    • A ADY007

      hello, i want to resize the form programmaticaly within the code. i want to add the height because a button will be visible. how can i make this happen?? the button will be hidden at first and the size will be 100 for instance and then when the user wants the button to be visible i want to make the form more much bigger ex: 150 height from 100! how can i make this pls!! someone help me :D Adrian De Battista

      T Offline
      T Offline
      TDSp
      wrote on last edited by
      #2

      easy when you know how! me.size = new system.drawing.size(height,width) should work ok!

      A 1 Reply Last reply
      0
      • T TDSp

        easy when you know how! me.size = new system.drawing.size(height,width) should work ok!

        A Offline
        A Offline
        ADY007
        wrote on last edited by
        #3

        10x alot!! Adrian De Battista

        1 Reply Last reply
        0
        • A ADY007

          hello, i want to resize the form programmaticaly within the code. i want to add the height because a button will be visible. how can i make this happen?? the button will be hidden at first and the size will be 100 for instance and then when the user wants the button to be visible i want to make the form more much bigger ex: 150 height from 100! how can i make this pls!! someone help me :D Adrian De Battista

          J Offline
          J Offline
          Joshua Quick
          wrote on last edited by
          #4

          You'll probably want to set Button.Visible = False while the form is small. That way the user can't tab to the button or press ALT-[Key] to activate it.

          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