To create a separator you need to add a label element to the form. Then you need to set the following parameters to it:
- AutoSize: False
- BorderStyle: Fixed3D
- Size.Height: 2
Or in code:
lblSeparator.AutoSize = false; lblSeparator.Height = 2; lblSeparator.Width = 300; lblSeparator.BorderStyle = BorderStyle.Fixed3D;