473,587 Members | 2,473 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 1451
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*******@hotm ail.com> wrote in message
news:eS******** ********@TK2MSF TNGP11.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*******@hotm ail.com> wrote in message
news:eS******** ********@TK2MSF TNGP11.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*******@hotm ail.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*******@hotm ail.com> wrote in message
news:eS******** ********@TK2MSF TNGP11.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****@darwinc onsulting.com> wrote in message
news:O4******** ******@TK2MSFTN GP15.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*******@hotm ail.com> wrote in message
news:eS******** ********@TK2MSF TNGP11.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****@darwinc onsulting.com> wrote in message
news:O4******** ******@TK2MSFTN GP15.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*******@hotm ail.com> wrote in message
news:eS******** ********@TK2MSF TNGP11.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
3303
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 please tell me where the line Control in VB.NET??? -- ------------------------------------------------
4
1293
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 such as Starting TaskA Processing TaskA Completed TaskA
0
7918
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main...
0
8206
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. ...
0
8220
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the...
0
6621
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then...
0
5392
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert...
0
3840
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in...
0
3875
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2353
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 we have to send another system
0
1185
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating...

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.