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. Windows Forms
  4. try to learn

try to learn

Scheduled Pinned Locked Moved Windows Forms
designhelptutorial
5 Posts 5 Posters 3 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.
  • S Offline
    S Offline
    smokindinesh
    wrote on last edited by
    #1

    Iam a begineer in windows form.So, please someone help me by giving idea how to design windows form that will run always in fullscreen mode. I tries to design form ,when i run in fullscreen by clicking fullscreen button then all button and lables etc doesn't expand relatively with windows.

    D R L B 4 Replies Last reply
    0
    • S smokindinesh

      Iam a begineer in windows form.So, please someone help me by giving idea how to design windows form that will run always in fullscreen mode. I tries to design form ,when i run in fullscreen by clicking fullscreen button then all button and lables etc doesn't expand relatively with windows.

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

      Have a look at the control's anchor and dock proprties. You may also want to look at one of the layout panels such as FlowLayoutPanel or TableLayoutPanel.

      Dave
      Binging is like googling, it just feels dirtier. Please take your VB.NET out of our nice case sensitive forum. Astonish us. Be exceptional. (Pete O'Hanlon)
      BTW, in software, hope and pray is not a viable strategy. (Luc Pattyn)

      1 Reply Last reply
      0
      • S smokindinesh

        Iam a begineer in windows form.So, please someone help me by giving idea how to design windows form that will run always in fullscreen mode. I tries to design form ,when i run in fullscreen by clicking fullscreen button then all button and lables etc doesn't expand relatively with windows.

        R Offline
        R Offline
        RobCroll
        wrote on last edited by
        #3

        Try setting the forms FormBorderStyle to None and the WindowState to Maximised

        "You get that on the big jobs."

        1 Reply Last reply
        0
        • S smokindinesh

          Iam a begineer in windows form.So, please someone help me by giving idea how to design windows form that will run always in fullscreen mode. I tries to design form ,when i run in fullscreen by clicking fullscreen button then all button and lables etc doesn't expand relatively with windows.

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

          smokindinesh wrote:

          when i run in fullscreen by clicking fullscreen button then all button and lables etc doesn't expand relatively with windows.

          That is the correct behavior. Getting a bigger screen/higher resolution means that there's more that fits on the screen, not that the computer stretches the old screen to fill it. Yes, the form will look differently on different screens, and you'll have to design with that in mind. A checkbox should always have the default height. It'll become smaller if the resolution goes up, but you shouldn't "rescale"; otherwise your app will look very funny with it's huge checkboxes :) You can lock controls in a position, and have them "grow" to fill the remaining space. That wouldn't work (or look) well with a checkbox, but would do the trick on a multiline textbox. Research "Docking" and "Acnhoring" to have them grow with the form.

          Bastard Programmer from Hell :suss:

          1 Reply Last reply
          0
          • S smokindinesh

            Iam a begineer in windows form.So, please someone help me by giving idea how to design windows form that will run always in fullscreen mode. I tries to design form ,when i run in fullscreen by clicking fullscreen button then all button and lables etc doesn't expand relatively with windows.

            B Offline
            B Offline
            BillWoodruff
            wrote on last edited by
            #5

            If you really want a 'zoom' to any size functionality, you might look at WPF rather than WinForms. Note that it is technically possible to ... when a screen size change occurs ... to calculate a ratio of change, and to recursively visit every control in every container, and alter the sizes and positions of each one ... and even scale-up the fonts, but, believe me, you do not want to go there ! :) Whether you could actually achieve some "magnification" or "miniaturization" effect by using API calls to change the screen resolution on the fly ... who knows, but I think that, too, would be an uglification (some DirectX games for example, go full-screen). Get a good grip on 'Anchor and 'Dock, and the roles of 'Padding and 'Margin, as others have suggested here, and I think you can achieve a solution that will satisfy you. best, Bill

            "Last year I went fishing with Salvador Dali. He was using a dotted line. He caught every other fish." Steven Wright

            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