What is PaintEventArgs
How can I call a routine that is named like this:
Public Sub XorExample(ByVal e As PaintEventArgs)
End Sub
I am having trouble understanding this 'e As PaintEventArgs'
Trying to call the above with:
XorExample()
returns the error 'Argument not specified for parameter e'
What does this require from me?
Thank you kindly.
# 1 Re: What is PaintEventArgs
PaintEventArgs tells the method what you want to draw onto, and the clipping region.
You can call it like this:
Dim g As Graphics = Me.CreateGraphics()
XorExample(New System.Windows.Forms.PaintEventArgs(g, New Rectangle(0, 0, Me.Width, Me.Height)))
This will pass a graphics handle to the current form with the proper dimentions.
-C6