|
-
May 22nd, 2013, 12:57 PM
#1
Thread Starter
New Member
Visual Basic 6 Graphing Calculator
Hello,
I have a computer science asssignment that requires me to create a graphing calculator. I have the code for the arithmetic but I need to know how to create a graph to plot XY coordinates. The program must output the XY coordinates from -10 to 10 as well as graph the line/curve. Could anybody help me with creating or adding some way to output a graph and the coordinates?
Thanks.
-
May 22nd, 2013, 01:07 PM
#2
Re: Visual Basic 6 Graphing Calculator
Yolo
One way might be to add a PictureBox control. It would serve
as the "canvas" on which to draw the line/curve. (You could
also just draw on the Form, but a PB gives you more flexibility).
Then, do draw a line, you could use the Line Method. In its generic
form, the syntax is
object.Line (x1, y1) - (x2, y2)
where object is the Form name or the PB name, and
x1, y1, x2, y2 are the line's beginning and ending coordinates.
Spoo
-
May 24th, 2013, 12:12 PM
#3
Thread Starter
New Member
Re: Visual Basic 6 Graphing Calculator
Thanks for the sugestion. I used that method an it worked out well.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|