Are .NET's anchoring and docking properties saving you time and eliminating the effort involved in writing resizing code, or do you find yourself writing code to handle most resize operations? Are there other time-saving features in .NET about which you'd like to see articles? Tell us what you think in our vb.dotnet.technical or csharp.general discussion groups.
Designing Resizable Windows Forms in Visual Studio .NET
Are you sick of wasting time writing resizing code for your Windows forms? .NET's new anchoring and docking properties enable form controls to automatically resize or reposition themselves as the form resizes. This article explains how to create resizable Windows forms automatically, or with just a few lines of code.
by Benny K. Mathew
October 21, 2002
Most of you have heard ofand probably usedthe new anchoring and docking properties available to Windows form controls. They enable controls to automatically resize or reposition themselves as the form resizes. This saves time that would normally be spent writing inane, non-productive resizing code just to make the forms look the same. This article explains how to use the new properties to save yourself some coding time.
Docking
The Docking feature attaches a control to the edge of its container. When a control is docked to an edge of it's container, it will always stick to that edge. The control will also resize itself to fully fit the edge of the container and also resizes as the container is resized. The Dock property of the Form control can be set to any one of the six values, Top, Bottom, Left, Right, Fill, and None.
It's quick, easy and you get access to all the articles on DevX.
This registration/login is to allow you to read articles on devx.com. Already a member?
To become a member of DevX.com create your Member Profile by completing the form below. Membership is free!