473,385 Members | 1,569 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

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 1442
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
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
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
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.