473,503 Members | 1,696 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Q: drawing a line

Hello,
How can you draw a line in asp.net design view?
Thanks,
Jim

Nov 19 '05 #1
8 6882
You can't. What is your business requirement?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"JIM.H." <JI**@discussions.microsoft.com> wrote in message
news:ED**********************************@microsof t.com...
Hello,
How can you draw a line in asp.net design view?
Thanks,
Jim

Nov 19 '05 #2
since this is a user interface, I just wanted to draw a line in two group of
buttons so it will look nice. Anyway, I put a text box with height=1px

"Kevin Spencer" wrote:
You can't. What is your business requirement?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"JIM.H." <JI**@discussions.microsoft.com> wrote in message
news:ED**********************************@microsof t.com...
Hello,
How can you draw a line in asp.net design view?
Thanks,
Jim


Nov 19 '05 #3
Hi Jim,

You can use the <hr> HTML element. You can assign a style property to it and
change its height, width, color. etc.

Cheers,
Steve Goodyear
Vancouver, Canada
Nov 19 '05 #4
Use the <hr> HTML tag.
Here's more info:
http://www.blooberry.com/indexdot/ht...pages/h/hr.htm

--
I hope this helps,
Steve C. Orr, MCSD, MVP
http://SteveOrr.net
"JIM.H." <JI**@discussions.microsoft.com> wrote in message
news:ED**********************************@microsof t.com...
Hello,
How can you draw a line in asp.net design view?
Thanks,
Jim

Nov 19 '05 #5
Ah, you don't want to DRAW a line. You want to DISPLAY a line. That's quite
a bit different. I would go with Steve on this one - a <hr> would do the
trick.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"JIM.H." <JI**@discussions.microsoft.com> wrote in message
news:63**********************************@microsof t.com...
since this is a user interface, I just wanted to draw a line in two group
of
buttons so it will look nice. Anyway, I put a text box with height=1px

"Kevin Spencer" wrote:
You can't. What is your business requirement?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
What You Seek Is What You Get.

"JIM.H." <JI**@discussions.microsoft.com> wrote in message
news:ED**********************************@microsof t.com...
> Hello,
> How can you draw a line in asp.net design view?
> Thanks,
> Jim
>


Nov 19 '05 #6
I still think "Drawing" a line would be funner. Learning how to use GDI+ is
awesome and return a jpg/gif/png content-type. :-)

Amil

"JIM.H." <JI**@discussions.microsoft.com> wrote in message
news:ED**********************************@microsof t.com...
Hello,
How can you draw a line in asp.net design view?
Thanks,
Jim

Nov 19 '05 #7
> You can use the <hr> HTML element. You can assign a style property to it
and
change its height, width, color. etc.


but that's actually pretty buggy. HR is semantic, though, so it's still a
good option.

Otherwise, CSS is your friend. With CSS, you can apply borders to any
block-level object. Applying a top-margin would be akin to a horizontal rule
visually.

-Darrel
Nov 19 '05 #8
There is the <hr> tag for a horizontal line. Other line drawing tricks
are usually done with image files, or adding borders to tables and
blocks, but there is no such beast as Page.DrawLine(x1, y1, x2, y2) if
that is what you are looking for.

--
Scott
http://www.OdeToCode.com/blogs/scott/

On Fri, 8 Apr 2005 11:25:03 -0700, JIM.H.
<JI**@discussions.microsoft.com> wrote:
Hello,
How can you draw a line in asp.net design view?
Thanks,
Jim


Nov 19 '05 #9

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

Similar topics

15
12976
by: Remon Huijts | last post by:
Hi there, For a very specific service, I have created a PHP script that uses the GD library functions to create a PNG image from a few lines of XML data describing a simple diagram/drawing. It's...
8
22375
by: john | last post by:
Hi I am a C++ newbie, I am looking to draw single lines and simple boxes in a C++ console window. Is there a draw command with x and y coordinates that can be used with my Dev C++ compiler. For...
0
2740
by: Tomi Holger Engdahl | last post by:
I am looking for a solution to add on-line drawing tool to a phpBB discussion board. The idea would be that the users can draw their own simple drawings with the tool and attach them easily as...
9
2387
by: Steve Long | last post by:
Hello, (total GDI newbie) I'm having trouble drawing just a simple line to display in a picturebox. I just want a straight, dotdash line. I have two methods, one works and one doesn't (it cause...
6
30633
by: Rene | last post by:
I tried searching the newsgroups to see how do you draw a dotted line but I was unable to find an answer, drawing a straight line is very easy but not a dotted one. So the question is, how do I...
2
12290
by: Champika Nirosh | last post by:
Hi, I want to create drawing board application that can draw Line, rectagle, circle and free hand drawing. Each drawing need to be transparent, moveable (draggable), have bring to front and...
4
12302
by: Stuart Norris | last post by:
Dear Readers, I am attempting to draw box around some text using unicode on multiline label. The label is forty characters wide and 12 lines deep. I have been trying to draw a box around text...
9
3160
by: davetelling | last post by:
I am not a programmer, I'm an engineer trying to make an interface to a product I'm designing. I have used C# to make a form that interrogates the unit via the serial port and receives the data. I...
2
3212
by: mattc66 via AccessMonster.com | last post by:
Does anyone know of some simple line drawing add-on apps. I just need to be able to do some simple line drawing with dims. 4 walls and a door and allow the user to type the dims for the walls. All...
5
12853
by: Macias | last post by:
Hi, Please help me, how I can make a line drawing on PictureBox similar to MS paint. I thinking about this: click and hold button, move mouse and relase button. I'm trying useing this...
0
7201
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,...
0
7083
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
7456
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...
0
5578
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
5011
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
3153
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1510
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
734
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
379
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...

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.