Public Sub DrawRectangleInt(e As PaintEventArgs)
' Create pen.
Dim blackPen As New Pen(Color.Black, 3)
' Create location and size of rectangle.
Dim x As Integer = 0
Dim y As Integer = 0
Dim width As Integer = 200
Dim height As Integer = 200
' Draw rectangle to screen.
e.Graphics.DrawRectangle(blackPen, x, y, width, height)
End Sub
当调用 Sub 时:
DrawRectangleInt()
我收到一条错误消息,说我需要为“e”传递一些东西,但是什么?
谢谢。