[Webinar] Streamline your web hosting managementRegister Today

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 218
  • Last Modified:

How can I draw a line?

Hello,

There's was a line control in VB 6, it's not available in C# 2.0.

How can I have one on my form?

Thanks.
0
EEssam
Asked:
EEssam
  • 3
2 Solutions
 
Jaime OlivaresSoftware ArchitectCommented:
For vertical and horizontal lines, use a PictureBox.
Set BorderStyle to FixedSingle or Fixed3D
Set Width or Height to 1
0
 
Alexandre SimõesManager / Technology SpecialistCommented:
You can't...
You can have containers that draw on themselves but the "good" old VB6 Line is gone...

Something like jaime_olivares said is usually used... I use Labels, I think they're somewhat lighter.
0
 
EEssamAuthor Commented:
It seems to do the trick but how can I change the line color?
0
 
Jaime OlivaresSoftware ArchitectCommented:
Also you can use a Panel control and change the Background property
0
 
Jaime OlivaresSoftware ArchitectCommented:
0

Featured Post

Take Control of Web Hosting For Your Clients

As a web developer or IT admin, successfully managing multiple client accounts can be challenging. In this webinar we will look at the tools provided by Media Temple and Plesk to make managing your clients’ hosting easier.

  • 3
Tackle projects and never again get stuck behind a technical roadblock.
Join Now