Hi,
I can find any 'line' icon in the toolbox when working in
design view on a form in a Visual C# application. Help
please!
Tx,
Matt
Robert Gruen [MSFT] - 30 Dec 2003 16:03 GMT
Matt,
The .NET framework does not have any shape controls. You'll have to either
play games with the groupbox, button control, or something similar and
adjust it's height to 1 or width to 1 depending on the type of line you
need (horizontal vs. vertical). You could of course always override the
paint method for your form and could use GDI/graphics to draw your line on
your form.
Thanks! Robert Gruen
Microsoft, VB.NET
This posting is provided "AS IS", with no warranties, and confers no rights.
--------------------
| Content-Class: urn:content-classes:message
| From: "matt p" <anonymous@discussions.microsoft.com>
[quoted text clipped - 24 lines]
| Tx,
| Matt
matt p - 31 Dec 2003 05:42 GMT
>-----Original Message-----
>Matt,
[quoted text clipped - 42 lines]
>
>.
Les Smith - 31 Dec 2003 21:30 GMT
Matt
A Label control with a minimum height makes a nice
replacement for the Line control in VB6.
Set the BorderStyle to FixedSingle and the size to nnn,1
for example to get the smallest height.
Hope this helps.
See articles, add-ins, books, free code at
http://www.knowdotnet.com
>-----Original Message-----
>Hi,
[quoted text clipped - 6 lines]
>Matt
>.