juggernot
Well-known member
- Joined
- Sep 28, 2006
- Messages
- 173
- Programming Experience
- Beginner
I've attached the solution in which I'm getting the error. The first form is where the user inputs all the information needed to display a graph. The second is where the graph is created. I'm not nearly completed yet, I'm just focusing on setting up a grid according to user input. To keep the graph from getting out of hand, I've made it so that the intervals(gridlines) cannot be less than 40 pixels apart. If this happens you recieve an error, and the graph form closes. After this happens I recieve an error that says cannot access a disposed object named "Graph". Then my project breaks and the first form closes, and I don't want that. Could someone tell me where I made my mistake?
And I realize that my intervals should start from the origin and move out, not start from one end of the graph and go to the other, maybe missing the origin altogether. I will fix this eventually.
And I realize that my intervals should start from the origin and move out, not start from one end of the graph and go to the other, maybe missing the origin altogether. I will fix this eventually.
Attachments
Last edited by a moderator: