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.
[396 byte] By [CitizenOlek] at [2007-11-20 8:29:42]
# 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
crackersixx at 2007-11-10 3:09:31 >