Home All Groups Group Topic Archive Search About

Horizontal rule in winforms

Author
8 Aug 2006 7:23 PM
Laserson
Hi! Sometimes i saw a horizontal rule in windows forms like in IE using
'hr' tag, but i can't guess how to do that! Can you help me? I've
included a samplÕ image where you can view those rules

Author
8 Aug 2006 9:07 PM
Herfried K. Wagner [MVP]
"Laserson" <laser***@yandex.ru> schrieb:
> Sometimes i saw a horizontal rule in windows forms like in IE using
> 'hr' tag, but i can't guess how to do that!

For boxes, check out the groupbox control.

Rules:

Wrapping Win32 Controls in .NET - Horizontal and Vertical Rules
<URL:http://www.codeproject.com/cs/miscctrl/hvrules1.asp>

Alternatively you can use a label control with width or height set to 2, and
'BorderStyle' set to 'Fixed3D' to create an inset line.

--
M S   Herfried K. Wagner
M V P  <URL:http://dotnet.mvps.org/>
V B   <URL:http://classicvb.org/petition/>