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. C#
  4. Set the size of the drawable part of a form

Set the size of the drawable part of a form

Scheduled Pinned Locked Moved C#
questioncsharphelptutorialworkspace
5 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.
  • T Offline
    T Offline
    Tony Pottier
    wrote on last edited by
    #1

    Hello, This is probably a dumb question so I'm sure you'll be able to help. On a typical form; you can set the width & height, but it sets the size of the whole form (including the windows buttons and borders). How to set the size of the drawable part of the form only. eg: On this window, how to setup the blue part to be 640x480; not the whole thing? Thank you!

    D 1 Reply Last reply
    0
    • T Tony Pottier

      Hello, This is probably a dumb question so I'm sure you'll be able to help. On a typical form; you can set the width & height, but it sets the size of the whole form (including the windows buttons and borders). How to set the size of the drawable part of the form only. eg: On this window, how to setup the blue part to be 640x480; not the whole thing? Thank you!

      D Offline
      D Offline
      DaveyM69
      wrote on last edited by
      #2

      Set the ClientSize property

      Dave
      BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
      Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
      Why are you using VB6? Do you hate yourself? (Christian Graus)

      T L 2 Replies Last reply
      0
      • D DaveyM69

        Set the ClientSize property

        Dave
        BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
        Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
        Why are you using VB6? Do you hate yourself? (Christian Graus)

        T Offline
        T Offline
        Tony Pottier
        wrote on last edited by
        #3

        Well yeah; I knew this was a dumb question... After more than 3 yrs of .NET I feel ashamed. Thank you dude!

        1 Reply Last reply
        0
        • D DaveyM69

          Set the ClientSize property

          Dave
          BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
          Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
          Why are you using VB6? Do you hate yourself? (Christian Graus)

          L Offline
          L Offline
          Luc Pattyn
          wrote on last edited by
          #4

          DaveyM69 wrote:

          This is probably a dumb question so I'm sure you'll be able to help.

          You passed the test :laugh: :laugh:

          Luc Pattyn

          :badger: :jig: :badger:

          Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.

          :jig: :badger: :jig:

          D 1 Reply Last reply
          0
          • L Luc Pattyn

            DaveyM69 wrote:

            This is probably a dumb question so I'm sure you'll be able to help.

            You passed the test :laugh: :laugh:

            Luc Pattyn

            :badger: :jig: :badger:

            Have a look at my entry for the lean-and-mean competition; please provide comments, feedback, discussion, and don’t forget to vote for it! Thank you.

            :jig: :badger: :jig:

            D Offline
            D Offline
            DaveyM69
            wrote on last edited by
            #5

            :jig: Yay! :jig:

            Dave
            BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)
            Visual Basic is not used by normal people so we're not covering it here. (Uncyclopedia)
            Why are you using VB6? Do you hate yourself? (Christian Graus)

            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