title: What is the right way to invoke a button's click event?
body: <p>Here: <a href="http://msdn.microsoft.com/en-us/library/hkkb40tf(v=VS.90).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/hkkb40tf(v=VS.90).aspx</a>, it says that, to call a button's click event from another button, you can/should do it this way:</p>
  
  <pre><code>button1.PerformClick();
  </code></pre>
  
  <p>However, in my situation (VS 2003. NET 1.1), this doesn't compile (admittedly, the link above specifies VS 2008, but it does not have a link to the pertinent info for prior versions, as msdn often does).</p>
  
  <p>This compiles:</p>
  
  <pre><code>private void btnPrint_Click(object sender, System.EventArgs args)
  {
      if (this.recordChanged)
      {
          //btnSave.Click();
          btnSave_Click(sender, args);
      }
      . . .
  </code></pre>
  
  <p>...but I don't know if it's THE way to do it.</p>