Results 1 to 3 of 3

Thread: Visual Basic 6 Graphing Calculator

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2013
    Posts
    6

    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.

  2. #2
    PowerPoster Spoo's Avatar
    Join Date
    Nov 2008
    Location
    Right Coast
    Posts
    2,656

    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

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2013
    Posts
    6

    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
  •  



Click Here to Expand Forum to Full Width