Defines the control's border style.
Get
| C# | short Style = object.BorderStyle; |
| VB.NET | Style = object.BorderStyle As Short |
| C++ | short Style = object->BorderStyle; short Style = object->GetBorderStyle(); |
| C | HRESULT object->get_BorderStyle(short* Style); |
| VB | Style = object.BorderStyle As Integer |
Put
| C# | short object.BorderStyle = Style; |
| VB.NET | object.BorderStyle = Style As Short |
| C++ | short object->BorderStyle = Style; void object->PutBorderStyle(short Style); |
| C | HRESULT object->put_BorderStyle(short Style); |
| VB | object.BorderStyle = Style As Integer |
object
Style
Defines the control's border style.
| Style | Description |
|---|---|
| 0 | None. The control doesn't have a border. |
| 1 | Paints the edit control with a border. |
| 2 | Paints the edit control using a 1-pixel border. The Appearance property is ignored. The color of the border is the standard color used for window borders. It cannot be modified. If Windows themes are used, the border is rendered using the current theme's style (identical to Style 1). |
The BorderStyle property defines the control's border style.
The control's border can be controlled further by the Appearance property.
If Windows themes are used, this property will cause a border to be displayed (if set to 1 or 2), rendered using the current theme's style.
See Also SftMask Object | Object Hierarchy