Torna al Thread
Public Class Form1
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
End Sub
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click
Dim x As Graphics = Graphics.FromHwnd(Me.Handle)
x.DrawLine(Pens.Black, 0, 0, 100, 200)
End Sub
End Class