ciao
Inanzitutto grazie per la pazienza ma proprio non ci arrivo...
Questa è la parte di codice che ho provato a modificare e che dovrebbe gestire la creazione di 2 linee,per ora non recupero i dati ma ho immesso io le coordinate:
codice:
Imports System
Imports System.Windows.Forms
Imports System.Drawing
Public Class frm_diametri
Private Sub frm_diametri_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
DataGrid1.Columns.Add(1, "X")
DataGrid1.Columns.Add(2, "Z")
End Sub
Private Sub PictureBox1_Paint(ByVal sender As Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles PictureBox1.Paint
Dim gr As Graphics = e.Graphics
gr.DrawLine(New Pen(Color.Black), 0, 300, 20, 300)
gr.DrawLine(New Pen(Color.Black), 20, 300, 20, 200)
End Sub
Private Sub Button3_Click(ByVal sender As System.Object, ByVal d As System.EventArgs) Handles Button3.Click
PictureBox1.Refresh()
End Sub
End Class
Naturalmente all'apertura del form mi trovo già le 2 linee create...