title: How to use the `using` statement in method
body: <p>I would like to use the <code>SendKeys.SendWait("{TAB}")</code> method but not declaring it at the top of the class, but inside a method. 
  I have tried doing it the following way but I'm doing something wrong.</p>
  
  <pre><code>using (System.Windows.Forms.SendKeys w  =  new System.Windows.Forms.SendKeys)
  {
      w.SendWait("{TAB}");
  }
  </code></pre>
  
  <p>I'm getting an error says the </p>
  
  <blockquote>
    <p>statement must be implicitly convertible to System.IDisposable.</p>
  </blockquote>