You need to have a look at the OnPaint method - here's an example in VB.NET
that draws a diagonal line.
Protected Overrides Sub OnPaint(ByVal e As
System.Windows.Forms.PaintEventArgs)
e.Graphics.DrawLine(Pens.Black, 100, 100, 200, 200)
End Sub
But you would probably be better off buying a graphing control, or
developing your own rather than putting all your graphing code into the Form
Paint...
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.