Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > Draw in graph?
 

Draw in graph?

i use VB.NET 2003 to develop my program

i have created Graph in picturebox

how can i use mouse to draw Straight line and curve

over the graph?

thx

peterlee2003  Thursday, March 22, 2007 1:54 PM
follow is from google, may answer your question.
The onpaint event fires every time a form or control needs to be redrawn to the screen. When this happens, your drawline() sub would need to be called too for the line to be redrawn. Your start and end point variables would have to persist outside of the sub as well.
Bob zhu - SJTU  Friday, March 23, 2007 11:22 AM
follow is from google, may answer your question.
The onpaint event fires every time a form or control needs to be redrawn to the screen. When this happens, your drawline() sub would need to be called too for the line to be redrawn. Your start and end point variables would have to persist outside of the sub as well.
Bob zhu - SJTU  Friday, March 23, 2007 11:22 AM

You can use google to search for other answers

Custom Search

More Threads

• Creating Progressbar control in gridview column
• email encode easy to thwart?
• Is Update Web Service Available?
• . NET Terrarium 1.2.msi (where is it?)
• Outlook Calendar Look and Feel - Automatic refresh
• TaskVision SourceCode VB W2k3 SERVER
• Source code didn't install with my terrarium_client_1.2.0.40701.exe
• Looking to build a Terrarium like world
• BUG: Microsoft.ApplicationBlocks.Data
• Why TaskVision does NOT use .vsdisco?