473,513 Members | 2,523 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

where is the Line Control ?


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???
--
------------------------------------------------
Best Regards From Tark
Nov 22 '05 #1
8 1447
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

"Tark Siala" <ta*******@hotmail.com> wrote in message
news:eS****************@TK2MSFTNGP11.phx.gbl...

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???
--
------------------------------------------------
Best Regards From Tark

Nov 22 '05 #2
Hi,

http://www.onteorasoftware.com/downloads/shapedemo.zip

Ken
-----------------
"Tark Siala" <ta*******@hotmail.com> wrote in message
news:eS****************@TK2MSFTNGP11.phx.gbl...

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???
--
------------------------------------------------
Best Regards From Tark

Nov 22 '05 #3
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

"Tark Siala" wrote:

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???
--
------------------------------------------------
Best Regards From Tark

Nov 22 '05 #4
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" wrote:

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???
--
------------------------------------------------
Best Regards From Tark

Nov 22 '05 #5
"Tark Siala" <ta*******@hotmail.com> schrieb:
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/groups?threadm=eV5alMTMEHA.624%40TK2MSFTNGP11.phx. gbl>

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

Nov 22 '05 #6
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.

"Tark Siala" <ta*******@hotmail.com> wrote in message
news:eS****************@TK2MSFTNGP11.phx.gbl...

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???
--
------------------------------------------------
Best Regards From Tark

Nov 22 '05 #7
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.

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep all discussions in the groups..

"James Hancock" <~j****@darwinconsulting.com> wrote in message
news:O4**************@TK2MSFTNGP15.phx.gbl...
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.

"Tark Siala" <ta*******@hotmail.com> wrote in message
news:eS****************@TK2MSFTNGP11.phx.gbl...

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???
--
------------------------------------------------
Best Regards From Tark


Nov 22 '05 #8
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.

--
Ken Halter - MS-MVP-VB - http://www.vbsight.com
Please keep all discussions in the groups..

"James Hancock" <~j****@darwinconsulting.com> wrote in message
news:O4**************@TK2MSFTNGP15.phx.gbl...
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.

"Tark Siala" <ta*******@hotmail.com> wrote in message
news:eS****************@TK2MSFTNGP11.phx.gbl...

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???
--
------------------------------------------------
Best Regards From Tark


Nov 22 '05 #9

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

15
3277
by: Viviana Vc | last post by:
How can I programatically do the equivalent of the following: cacls "C:\Program Files\test" /T /G Everyone:f ? Thanks, Viv
7
350
by: Tark Siala | last post by:
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 ...
4
1291
by: D | last post by:
Hi I'm obviously still learning here but what I've created is a page with a calendar and button. When I click the button I do a number of tasks and would like to output the progress in messages...
0
7158
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7535
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7098
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5683
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5085
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4745
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3221
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1592
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
798
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.