Draw Rectangle over PictureBox
问题 The next code lets you draw Rectangles in the Form with mouse clics. Why not, or how can be draw over a PictureBox? Public Class Form1 Dim SelectRect As Rectangle = New Rectangle() Dim ps As Point = New Point() Dim pe As Point = New Point() This catch the first click, starting point or corner of the rectangle Private Sub Form1_MouseDown(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles Me.MouseDown SelectRect.Width = 0 SelectRect.Height = 0 SelectRect.X = e.X