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