FlexGrid for WinForms
Formatting the Border Style of the Control
Show AllShow All
Hide AllHide All

To format the border style of the control, set the ScrollableControl.BorderStyle property to Fixed3D, FixedSingle, Light3D, None, or XpThemes. This property can be set either in the designer or in code. The following table describes each of the border styles.

Border Description
Fixed3D A three-dimensional border. This is the default setting.
FixedSingle A single line border.
Light3D A light sunken border.
None No border.
XpThemes A border drawn using XP themes.

In the Designer

Locate the BorderStyle property in the Properties window and set it to Fixed3D, FixedSingle, Light3D, None, or XpThemes. In this example, the BorderStyle property is set to Fixed3D.

In Code

Add code to the Form_Load event to set the BorderStyle property to Fixed3D, FixedSingle, Light3D, None, or XpThemes. The following code sets the BorderStyle property to Fixed3D:

To write code in Visual Basic

To write code in C#

Three-Dimensional Border

The border will be three-dimensional.


Single Line Border

The border will be a single line.


Light Sunken Border

The border will be light and three-dimensional.


No Border

There is no border.


XP Theme Border

The border will be XP themed.


See Also

 

 


Copyright © GrapeCity, inc. All rights reserved.

Product Support Forum |  Documentation Feedback