Handle paint event of picColorKey,
Private Sub picColorKey_Paint(ByVal sender As System.Object, ByVal e As System.Windows.Forms.PaintEventArgs) Handles PictureBox1.Paint
Dim objPen As Pen
Dim objPicGraphics As Graphics = e.Graphics
objPen = New Pen(Drawing.Color.Red, 5)
objPen.DashStyle = Drawing2D.DashStyle.Solid
objPicGraphics.DrawLine(objPen, 20, 20, 400, 400)
End Sub
Reputation Points: 2134
Solved Threads: 1227
Posting Genius
Offline 6,524 posts
since Oct 2008