title: Invoking delegate cannot convert void to system.delegate
body: <p>in <code>Main</code> I have <code>public void playbutton_Click(object sender, EventArgs e)</code> and I'm trying to call that from a different class with Invoke(). My second class looks like </p>
  
  <pre><code>class KeyBinds
  {
      public delegate void Del(object sender, EventArgs e);
  
      public static void CheckKey(int key)
      {
  
           Del handler = (Application.OpenForms[0] as Main).playbutton_Click;
           (Application.OpenForms[0] as Main).Invoke(handler(null,null));
  
      }
  </code></pre>
  
  <p>But the handler(null,null) returns an error "Argument 1: cannot convert from 'void' to 'System.delegate'</p>