Thursday, June 27, 2013

Separator Line on Form [C#]

This example shows how to create a bevel line in Windows Forms. This line can be used as a visual separator of controls on a form.
Bevel line
To simulate the line in Windows Forms use a Label control. Set its Height to 2 pixels and BorderStyle to Fixed3D. Thats all, see the example.
[C#]
// separator bevel line
label1.AutoSize = false;
label1.Height = 2;
label1.BorderStyle = BorderStyle.Fixed3D;
 
source : http://www.csharp-examples.net/separator-line/ 

No comments:

Post a Comment