title: How to pass control to a method
body: <p>I want to create a method that changes enabled property. How do I pass the contorl name and property to a method.</p>
  
  <p>If the following were my original method:</p>
  
  <pre><code>public void ChangeProperties()
  { 
       btnAcesScore.Enabled = true;
  }
  </code></pre>
  
  <p>I want to be able to change the "btnAcesScore" each time I call this method.  How do I pass this to the method.  I tried passing it as a string but that doesn't work.</p>
  
  <p>Here is what I tried:</p>
  
  <pre><code>public void ChangeProperties(string category)
  { 
       category = true;
  }
  
  ChangeProperties("btnAcesScore.Enabled");
  </code></pre>
  
  <p>Susan</p>