Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Draw line on a web form

Status
Not open for further replies.

LindaH

Programmer
Dec 12, 2001
42
US
How do you draw a line or rectangle on a web form?
 
Well <hr> will still give you an horizontal line, but I&quot;m guessing you want something either vertical, or the shape you mentioned. I don't think there's any way to do that actually, other than drawing it in Paint and adding it to the web form via an image control.

Anyone else know of a way around this?

Jack
 
Hey Linda,

I was reading an article (it was either MSDN or VisualStudio Magazine) that talked about this. Unfortunatly, there is no way to just draw a shape on a web form like you can on a windows form. However, the article did recommend using the system.drawing (I believe that was the library) to dynamically create shapes to display in image controls on your web form.

Personal opinion: if you don't need them to be dynamic, just use paint and copy the images in.

Jack
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top