473,385 Members | 1,782 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.

draw circles

my points are:
10,10
20,20
30,30
40,40
and so on ....
With these points I can draw many lines continuosly.
Then I would like to place the small circle in the
connecting points like
20,20
30,30
40,40
and so on.....
How to do?
Nov 20 '05 #1
8 1932

try this....

Dim gobj as Graphics = <activeform>.CreateGraphics()
gobj.Graphics.DrawEllipse(New Pen(Color.Black, 3), 10, 10, 10, 10)

Manasvin

"knranjit" <kn******@rediffmail.com> wrote in message
news:07****************************@phx.gbl...
my points are:
10,10
20,20
30,30
40,40
and so on ....
With these points I can draw many lines continuosly.
Then I would like to place the small circle in the
connecting points like
20,20
30,30
40,40
and so on.....
How to do?

Nov 20 '05 #2
Tested . .

Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As
System.EventArgs) Handles Button1.Click

Dim g As Graphics

Dim i As Single

g = Me.CreateGraphics()

For i = 10 To 40 Step 10

PlotPoint(i, i, 8, g)

Next

End Sub

Private Sub PlotPoint(ByVal x As Single, ByVal y As Single, ByVal diameter
As Single, ByVal g As Graphics)

Dim blackPen As New Pen(Color.Black, 1)

g.DrawLine(blackPen, (x - 1), (y - 1), (x + 1), (y + 1))

g.DrawEllipse(blackPen, x - (diameter / 2), y - (diameter / 2), diameter,
diameter)

End Sub

Regards - OHM


Nov 20 '05 #3
"knranjit" <kn******@rediffmail.com> schrieb
my points are:
10,10
20,20
30,30
40,40
and so on ....
With these points I can draw many lines continuosly.
Then I would like to place the small circle in the
connecting points like
20,20
30,30
40,40
and so on.....
How to do?


You are a really funny guy! Are you getting paid for each new thread on
nearly the same subject? Seems so... Could you solve the previous problem in
the previous thread(s)? I asked several question to try to help you but you
didn't answer again. Very strange... I've already tried to explain by email
why ignoring all our replies and questions just trying to help you might
lead in getting no answer anymore in the future. Concerning me I am not
gonna reply again - seems to be "for the recycle bin".
--
Armin (not amused)

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #4
Hi,

In addition to the other comments the pen has a startcap and endcap
properties. It allows you to have line start with a circle, square, or
arrow.

Dim p As New Pen(Color.Red)

p.EndCap = LineCap.RoundAnchor

p.StartCap = LineCap.ArrowAnchor

e.Graphics.DrawLine(p, 10, 250, 100, 250)

Ken
-----------------------
"knranjit" <kn******@rediffmail.com> wrote in message
news:07****************************@phx.gbl...
my points are:
10,10
20,20
30,30
40,40
and so on ....
With these points I can draw many lines continuosly.
Then I would like to place the small circle in the
connecting points like
20,20
30,30
40,40
and so on.....
How to do?

Nov 20 '05 #5
See,
This is the kind of thing which was annoying me back some two
months ago, but I got flamed for saying the similar thing to you.

Regards - OHM
Armin Zingler wrote:
"knranjit" <kn******@rediffmail.com> schrieb
my points are:
10,10
20,20
30,30
40,40
and so on ....
With these points I can draw many lines continuosly.
Then I would like to place the small circle in the
connecting points like
20,20
30,30
40,40
and so on.....
How to do?


You are a really funny guy! Are you getting paid for each new thread
on nearly the same subject? Seems so... Could you solve the previous
problem in the previous thread(s)? I asked several question to try to
help you but you didn't answer again. Very strange... I've already
tried to explain by email why ignoring all our replies and questions
just trying to help you might lead in getting no answer anymore in
the future. Concerning me I am not gonna reply again - seems to be
"for the recycle bin".


--
Best Regards - OHM

O_H_M{at}BTInternet{dot}com
Nov 20 '05 #6
"One Handed Man [ OHM# ]" <O_H_M{at}BTInternet{dot}com> schrieb
See,
This is the kind of thing which was annoying me back some
two
months ago, but I got flamed for saying the similar thing to you.


??
Could you please explain?
--
Armin

Nov 20 '05 #7
PPL, not responding. Saying thanks etc

OHM

Armin Zingler wrote:
"One Handed Man [ OHM# ]" <O_H_M{at}BTInternet{dot}com> schrieb
See,
This is the kind of thing which was annoying me back some
two
months ago, but I got flamed for saying the similar thing to you.


??
Could you please explain?


--
Best Regards - OHM

O_H_M{at}BTInternet{dot}com
Nov 20 '05 #8
"One Handed Man [ OHM# ]" <O_H_M{at}BTInternet{dot}com> schrieb
PPL, not responding. Saying thanks etc


Yes, but I can't remember I didn't respond (well, rarely *g*). You wrote "I
got flamed for saying the similar thing to you.". As this was *your* reply
to *my* message I assumed *you* said *you* got flamed saying similar things
to *me*. ;-))

Man, complication about nothing. ;-)

[ ] EOT

:-)
--
Armin

http://www.plig.net/nnq/nquote.html
http://www.netmeister.org/news/learn2quote.html

Nov 20 '05 #9

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

Similar topics

0
by: maidoo | last post by:
here is the situation im developing an asp.net application using vb.net through vs2003 i want to draw a shape of connected circles upon a database retreival result. or i want to draw a circle when...
4
by: Jason Huang | last post by:
Hi, In my C# Windows Form, how do I draw a Line? Thanks for help. Jason
3
by: Douglas Douglas | last post by:
Hi everybody. I have a paper form that I scan into an image. My user fills some circles in this paper form using black ink. Every form has ten rows with five circles each and the user fills only...
3
by: Luis Arnauth | last post by:
Hello, I've got a small aplication where i design a small scheme using System.Drawing. I need to use a NumericUpDown control to change some text i've draw. I have all the code under:...
3
by: Daniel Mark | last post by:
Hello all: I want to draw some shapes, such as lines, circles on an image. The input to the program is an image and the output from the program is a superimposed image. what kind of...
2
by: SrideviMani | last post by:
Hi, I just want to draw primitive shapes like lines,circles,rectangles etc. I found a method : Graphics.drawline(Pen,x1,y1,x2,y2) The code I used is as follows: Pen blackPen = gcnew Pen(...
5
by: lgeastwood | last post by:
I have tweaked the PictureBox97.mdb (Stephen Lebans <www.lebans.com>) code to nicely draw lines, rectangles and circles to the specs that I input. I'm at a loss though with trying to setup an...
7
by: fauxanadu | last post by:
Is it possible to draw to the screen using VBA and a form in Access and if so, could someone either point me to a decent tutorial on the subject, a good book containing the subject, or show me some...
7
by: =?iso-8859-1?Q?Vicente_Garc=EDa?= | last post by:
Hi, I need to programmatically draw a graph (his nodes and his edges) from dynamic XML file. The graph is very complex and I don't know how I could do this task. Any ideas please? Microsoft...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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...
0
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
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...

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.