473,657 Members | 2,591 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

drawing circles and placing values next to circle

Hi,
I would like to know how to place circles in the
connecting points of the lines, and very close to the
circles I would like to place the values like a,b,c...etc
automatically for each connecting point on the line.
I meant connecting points like.
Here I shall explain my requirements clearly thro' my
coding:

Private Sub Button1_Click(B yVal sender As System.Object,
ByVal e As System.EventArg s) Handles Button1.Click
On Error Resume Next
For i = 0 To 1246
x1 = Val(rs.Fields(" Easting").Value )
y1 = Val(rs.Fields(" Northing").Valu e)
pt = New Point(x1, y1)
rs.MoveNext()
x2 = Val(rs.Fields(" Easting").Value )
y2 = Val(rs.Fields(" Northing").Valu e)
pt2 = New Point(x2, y2)
ogra = Me.CreateGraphi cs
ogra.DrawLine(P ens.Blue, myconversion(pt ),
myconversion(pt 2))
'ogra.DrawEllip se(penprocs, myconversion(pt 2),
5, 5)
Next
rs.Close()
End Sub

Private Function myconversion(By Val temp As Point) As Point
Return New Point(temp.X, ClientSize.Heig ht -
temp.Y)
End Function

If you notice my button_click

ogra.drawellips e line is commented because it was giving
me an error.It's design time error but I cant sort out my
problem.
Actually in this case at every end point of the line I
need to place the circle.I have continous n number of
lines,in that from where on my line is continuing I want
to place the circle and place the continous alphabets like
a,b,c automatically just on top or very close to my
circle.

Database:Access
didnt use option strict on my coding.

Thanking You for ur coding in advance.
Ranjit
Nov 20 '05 #1
0 1501

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

Similar topics

6
4046
by: Eric | last post by:
I need to draw a wheel. It should look about like the Wheel of Fortune wheel. I also need to be able to change the colors in each section. I know how to draw circles and lines but I have no idea how to fill each section with different colors. Can someone post a little sample code. Perhaps a circle in 2 pieces that you can change the color?
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?
0
1148
by: dgk | last post by:
A friend wants to have two circles containing letters. One would be stationary and the other would rotate around the first one. I know how to get the graphic form thingie from the Form Paint event argument and can see how to create concentric circles that would form the stationary circle, but I don't know how to make a circle rotate except by constantly repainting it. That seems like a bad approach. I suppose it can be done with images...
2
2615
by: Dursun | last post by:
Collegues, is it possible to do the foloowing: Let end user draw specific shapes (a circle that has a number within it and a connector that points to a specific area on the background image) using Windows Forms and controls. To be more specific, I want to design a VB.Net Windows form where end user will mark damages on an airplane picture (which might be background picture of the form) using a marker object that has a circle (with a...
7
2125
by: Stefan0 | last post by:
Hi, I'd like to draw a circle on the screen using GDI+ I'm using the DrawEllipse method with width = height and I set the SmootingMode to SmoothingModeAntiAlias but the circle is "squared". Is there a way to draw a "smoothed" circle ? Thanks in advance Stefano
3
2832
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 one circle for each row. I was wondering if I could use the Python Imaging Library to process these forms. I know the Image class is really powerful, but I can't think of a way of how to locate wich circle was filled.
3
11303
bvdet
by: bvdet | last post by:
I wrote a script that extracts line and circle data from an Autocad DXF file:## GridDXF.py Version 1.02 ## Copyright (c) 2006 Bruce Vaughan, BV Detailing & Design, Inc. ## All rights reserved. ## NOT FOR SALE. The software is provided "as is" without any warranty. ######################################################################## ''' parseDXFpts(file_name) - 'file_name' is the name of the DXF file to parse. ...
4
12310
debasisdas
by: debasisdas | last post by:
This article contains the basic syntax to draw graphics of various shapes and sizes in Visual Basic 6.0. Different types of geometrical shapes (rectangle, square, circle, arc, ellipse etc.) can be drawn on the form by using the following syntax. Basic syntax (for line, rectangle, square) ============================= OBJECT.LINE (X1, Y1) -(X2, Y2), , ] STEP -- KEYWORD SPECIFYING THAT THE STARTING POINT COORDINATES ARE RELATIVE TO THE...
1
4058
by: tiffrobe | last post by:
I'm a little lost on my program. Everything works fine except function 3. It gives out garbage numbers. Its suppose to give the distance between two points and then the area of 2 circles. #include <cmath> #include <string> #include <iostream> #include <fstream> #include <cstdlib> using namespace std;
0
8392
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8305
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
8730
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...
0
8605
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
7321
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
6163
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
5632
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4301
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2726
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.