2
刪除以前創建的邊界我有這樣的代碼:試圖在Visual Basic
Sub drawborder()
Dim objGraphics As Graphics
objGraphics = Me.CreateGraphics
objGraphics.Clear(System.Drawing.SystemColors.Control)
objGraphics.DrawRectangle(System.Drawing.Pens.Red, picShowPicture.Left - 1, picShowPicture.Top - 1, picShowPicture.Width + 1, picShowPicture.Height + 1)
objGraphics.Dispose()
borderstatus.Text = "Border Drawn"
End Sub
,這周圍繪製一個圖片框的邊框。現在我想用另一個按鈕來刪除它,但我似乎無法使其工作。