where is the Line Control ?

  • Thread starter Thread starter Tark Siala
  • Start date Start date
T

Tark Siala

hi again :)

in VB6 i use the Line to Draw Lines Like when i make Wizard Forms.
but in VB.NET i cant find this Control......
it's realy not important Control
but nice to make GUI like 3D Lines

please tell me where the line Control in VB.NET???
 
The Line control is gone from VB.NET, as is the Shape control. Under .NET,
you have to draw them yourself using Graphics methods.

If you're looking for 3D lines, then an alternative might be the
ControlPaint class. That has methods for drawing 3D borders of rectangles,
and you can specify which side(s) to draw, so you can simulate 3D lines like
you see in wizard forms by only drawing one side of the rectangle.

HTH

- Scott
 
Hi,

A quick workaround:
Use a GroupBox control
Set it's Text property to Null
Set it's Height (or Width for vertical lines) to 2

HTH,
Rakesh Rajan
 
Hi,

A quick workaround for this is to use the GroupBox control by setting it's
Text to null and Height to 2.

HTH,
Rakesh Rajan
 
Tark Siala said:
in VB6 i use the Line to Draw Lines Like when i make Wizard Forms.
but in VB.NET i cant find this Control......
it's realy not important Control
but nice to make GUI like 3D Lines

please tell me where the line Control in VB.NET???

There is no line control any more.

See (complete discussion):

<URL:http://www.google.de/[email protected]>
 
Actually don't use the Groupbox control. It's a container control and has a
window be default and thus eats resources for no reason.

Use the label control to accomplish the same thing with way less resources.
 
Wholly smokes.... look at this crosspost list!... anyway, Labels or Frames
(aka "GroupBox" (sheesh) controls) are fine as long as you're only drawing
Horizontal or Vertical lines.
 
Back
Top