problem in delegate declaration and its invocation
<p>Hey,
When I try to call the event <code>myevent</code> in the function <code>fire</code>, it gives compiler error as</p>

<blockquote>
  <p>delegate mydelegate does not take 0 arguments.</p>
</blockquote>

<p>if i try to give arguments in calling myevent as</p>

<pre><code>myevent(this);
</code></pre>

<p>it again shows error as it does not take 1 parameters. what parameters am i supposed to give in the calling <code>myevent</code>? Here's the program code:</p>

<pre><code>namespace useofdelegates
{
    public class Class1
    {   int i;
        public delegate void mydelegate(object sender,EventArgs e);
        public event mydelegate myevent;
        public void fire()
        {
            myevent(this); // *** shows compiler error ***
        }
    }
}
</code></pre>
