473,654 Members | 3,272 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 6887
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**@discussio ns.microsoft.co m> wrote in message
news:ED******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:ED******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:ED******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:63******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:ED******** *************** ***********@mic rosoft.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**@discussio ns.microsoft.co m> wrote in message
news:ED******** *************** ***********@mic rosoft.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(x 1, 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**@discussio ns.microsoft.co m> 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
12997
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 cool and works, writing the XML data in a text editor is straightforward for me because I designed the format. I have no idea however how I can make a simple online drawing program that creates this XML code. The code is realy simple, just...
8
22420
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 simplicity sake, I would be prepared to draw using characters such as _ or * if proper line drawing is really complicated. Thanks in advance. Walt
0
2762
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 images in the discussion. The idea is to easily add small drawings to the postings. The drawign tool should be easy to use and learn. It should be easily integrate to the phpBB system.
9
2404
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 an exception to be thrown): This one works but it's not the results I want. private void CreateImage1() {
6
30649
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 draw a dotted line? Thank you.
2
12327
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 send to back feature etc. How can I do this .. where should I start?
4
12316
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 (centered in the label) on this label. My font on this label is Courier new - hence fixed width character cells.
9
3170
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 want to be able to draw lines in a picturebox based upon certain data points I have received. I dragged a picturebox from the toolbar onto my form, but after having gone through the help files, looking online and trying a variety of things, I...
2
3222
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 simple. Thanks MAtt -- Matt Campbell mattc (at) saunatec com
5
12868
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 g.DrawLine(..), but I have a lot of line. In C++ is a parameter XORPUT, but in C# I can't find it.
0
8294
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8816
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. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8709
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8494
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8596
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 choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7309
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 launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6162
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4150
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 the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
2719
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

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.