473,385 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Dotted lines

Somebody can help to draw dotted giagonal lines?

Thanks

Durand
Nov 15 '05 #1
1 8295
Hi,

You might try something like this:

private void Form1_Paint(object sender, System.Windows.Forms.PaintEventArgs
e)

{

using (Pen p = new Pen(Color.Black))

{

p.DashStyle = DashStyle.Dot;

e.Graphics.DrawLine(p, new Point(0, 0), new Point(100, 100));

}

}
--
Miha Markic - RightHand .NET consulting & development
miha at rthand com

"Durand" <ca***********@terra.com.br> wrote in message
news:em**************@TK2MSFTNGP09.phx.gbl...
Somebody can help to draw dotted giagonal lines?

Thanks

Durand

Nov 15 '05 #2

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

Similar topics

3
by: Christian Knoflach | last post by:
Hi everyone, well i know the CSS-Entity "border-style:dotted", but it doesn't work for me - i need 1 Pixel dotted borders, but "border-style:dotted" creates (on my IE 6, at least) dashed borders...
3
by: news-server | last post by:
Hi, I was wanting to get a dotted line..Such as they have on http://www.e-cbd.com/ What part of the CSS in dreamweaver is this going to be under? By the way..the part I am talking about is...
4
by: Doors of Perception | last post by:
As you probably know, when you click on a link in MSIE and go to a page, then when you click the "back" button, you see a dotted box outlining the link on which I just clicked. As far as I'm...
6
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
by: Jag | last post by:
I have some dynamic information(from database)..which may cross multiple lines....that entire matter has to be dotted underlined and should also be able to print on printer exactly in the form of...
1
by: Andrew Wan | last post by:
Does anyone know whether it's possible to get dotted guidelines in the TreeView control? Like in Windows Explorer, when user expands a folder, all the subfolders & files are connected by dotted...
0
by: RolltheBall | last post by:
Hi All. Ok, if g.DrawLine(pens.blue, 10, 10, 20, 10) will draw a straight line. How do I draw a dotted line? Thanks RtB
2
by: Brian Kendig | last post by:
I'm trying to make a web page with a restaurant menu on it. Each line on the menu is the name of a dish (left-justified) and that dish's price (right-justified), with a dotted line between them....
2
by: FredZimmerman | last post by:
When I have my black backround for Body and my button is a round .GIF image (actually image has round green button on black backround, whole thing a rectangle), when I click on the button...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

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.