winforms line code example
Example: winforms line
Add a Label control to your form.
Set Label Text to empty.
Set BorderStyle to Fixed3D.
Set AutoSize to false.
Set Height to 2 (most easily accomplished by typing 2 into the Size/Height field under Label Properties).