Before you can use a C1Elastic control in your application, you must add the C1Sizer.OCX file to your project. If you use the control in most of your VB projects, you may want to add it to VB's Autoload file.
To distribute applications you create with the C1Elastic control, you must install and register it on the user's computer. The Setup Wizard provided with Visual Basic provides tools to help you do that. Please refer to the Visual Basic manual for details.
The C1Elastic control is a versatile smart container. It can save you hundreds of lines of Visual Basic code by allowing you to:
Automatically align the control to the left, right, top, bottom, or to fill its container, whether it is a form or another control;
Automatically resize the Elastic's child controls, evenly or unevenly, vertically, horizontally, proportionally, or using a positioning grid;
Allow the user to resize controls with the mouse (Splitter bars) inside the Elastic at runtime;
Label child controls based on their Tag property, instead of using several label controls;
Draw frames around child controls;
Create multi-line labels, progress bars, or both in a single Elastic control.
You can use the Elastic control as an enhanced replacement for the following Visual Basic controls: Image controls, Labels, Frames, and Progress Indicators. To find out how, look up the following properties in the reference section of this manual:
To replace |
Look up these properties: |
---|---|
Label Controls |
|
Image Controls |
|
Frame Controls |
|
Progress Bars |
To learn more about the Elastic's main features, aligning and resizing controls, see the following properties: Align and AutoSizeChildren.
The following sections of the documentation describe how to use the Elastic control by itself and as a container for other controls.