title: use object in c#.net, like vb.net
body: <p>I have a method in VB.Net that calls button of form: </p>
  
  <pre><code>Private Sub BUTTON_CAL( _
      ByVal frm As Object, ByVal e As System.Windows.Forms.KeyEventArgs)
  
      If e.KeyCode = Keys.A AndAlso e.Modifiers = Keys.Control Then
          If frm.AddButton.Enabled = True Then Call frm.AddButton.PerformClick()
          e.SuppressKeyPress = True
      End if
  End Sub
  </code></pre>
  
  <p>I have converted this code into c#</p>
  
  <pre><code>public static void BUTTON_CAL(object frm, System.Windows.Forms.KeyEventArgs e) {
      if(e.KeyCode==Keys.A&amp;&amp;e.Modifiers==Keys.Control) {
          if(frm.AddButton.Enabled==true) {
              frm.AddButton.PerformClick();
          }
          e.SuppressKeyPress=true;
      }
  }
  </code></pre>
  
  <p>in C#.Net I am getting the error</p>
  
  <blockquote>
    <p>'object' does not contain a definition for AddButton' and no extension method 'AddButton' accepting a first agument of type 'object' could be found(are you missing a using directive or an assembly reference?) </p>
  </blockquote>