Customizing the Control Layout

The first aspect of the control that you may want to customize is the layout. The control presents two columns, one with labels and one with editors. The columns have the same size by default, but you can change that by changing the value of the LabelWidth and EditorWidth properties.

For example, you could make the label column narrower in the example above by adding one line of code:

      Visual Basic

      C#

The result would be as shown below:

 

 

As you can see, the label column is now narrower and more room is left for the editor part. If you resize the form, you will notice that the width of the label column remains constant.


Send us comments about this topic.
Copyright © GrapeCity, inc. All rights reserved.