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. form controls enlarge

form controls enlarge

Scheduled Pinned Locked Moved Windows Forms
tutorial
4 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.
  • A Offline
    A Offline
    avvaru murali
    wrote on last edited by
    #1

    Hi, How to set form controls to form size.When i maximize the Form,the form controls also reduces the size,and when i minimize the form the from controls are also minimize.. please post reply.

    murali krishna

    L C M 3 Replies Last reply
    0
    • A avvaru murali

      Hi, How to set form controls to form size.When i maximize the Form,the form controls also reduces the size,and when i minimize the form the from controls are also minimize.. please post reply.

      murali krishna

      L Offline
      L Offline
      led mike
      wrote on last edited by
      #2

      avvaru.murali wrote:

      and when i minimize the form the from controls are also minimize..

      There is no such thing as controls minimizing.

      led mike

      1 Reply Last reply
      0
      • A avvaru murali

        Hi, How to set form controls to form size.When i maximize the Form,the form controls also reduces the size,and when i minimize the form the from controls are also minimize.. please post reply.

        murali krishna

        C Offline
        C Offline
        cocoonwls
        wrote on last edited by
        #3

        Hi murali, I am not sure is this you want,but you may try it.In target method you can resize whatever you want. this.SizeChanged += new EventHandler(target method); Hope this help you :)

        1 Reply Last reply
        0
        • A avvaru murali

          Hi, How to set form controls to form size.When i maximize the Form,the form controls also reduces the size,and when i minimize the form the from controls are also minimize.. please post reply.

          murali krishna

          M Offline
          M Offline
          Mike Dimmick
          wrote on last edited by
          #4

          The simplest approach in .NET is to use the Dock and Anchor properties. If you want to create a toolbar, use the Dock property to place the toolbar at the top. Similarly a 'status bar' could be set to Dock at the bottom. That means that the control is attached to one side of the window, and its size in the other direction is the size of the window (i.e. if docked to the left, the horizontal size is maintained but the vertical size is the size of the window). Controls within a window can also be Anchored to maintain a set distance from the edge of a window. The default is to anchor top and left, so that as the window is resized, the distances to the top of the window and to the left of the window are maintained. To have the control increase size to the right when the form is made larger horizontally (and shrink when the form shrinks), anchor to the right as well. Similarly you can anchor to the bottom. To have a control which simply moves to the right and to the bottom, rather than resizing - for example, a button next to a single-line text box - anchor only to the right and bottom, turn left and top anchoring off. For more complicated layouts, you can split your form up into Panels which can then be anchored, and you can anchor or dock your controls within the Panels. .NET 2.0 adds a FlowLayoutPanel and there is also a TableLayoutPanel for tabular layouts.

          DoEvents: Generating unexpected recursion since 1991

          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