title: C# button click EventArgs e information
body: <p>When I click on a button in e.g. a WinForms application, what information is passed to the <em>EventArgs e</em> of the event method? I'm just wondering because I'm using the <strong>as</strong> keyword to "convert" <em>e</em> to a mouse event in order to get the coordinates of the point where the button was clicked.</p>
  
  <p>EDIT:
  In the following example I can convert the variable <strong>e</strong> to an object of the type MouseEventArgs, and I want to know to what other types of event arguments <strong>e</strong> can be converted.</p>
  
  <pre><code>private void someEvent(object sender, EventArgs e)
  {
    int xCoord = (e as MouseEventArgs).X;
  }
  </code></pre>