Using objects from outside of its form
<p>My current project requires me to disable combo boxes from Form 2 when edit button is clicked in Form 1. What I would like to know is how I can disable a combo box that's in Form 2 from Form 1. </p>

<p>I tried </p>

<pre><code> IDComboBox4.Enabled = false; 
</code></pre>

<p>in Form 1 however I get and error that says </p>

<blockquote>
  <p>"The Name 'IDComboBox4' does not exist in the current context".</p>
</blockquote>

<p>Update: </p>

<p>I attempted both answers however sadly neither worked. Now I get a syntax error </p>

<blockquote>
  <p>"An object reference is required for the non-static field, method, or property"</p>
</blockquote>

<p>when trying code</p>

<pre><code>    dlgForm.ComboBox4Enabled = false;
</code></pre>

<p>in Form1 with code </p>

<pre><code>    public bool ComboBox4Enabled
    {
        get 
        { 
            return IDComboBox4.Enabled; 
        }
        set 
        {
            IDComboBox4.Enabled = value; 
        }
    }
</code></pre>

<p>in Form2 which is also dlgForm. I feel like I'm overlooking something basic however just cant put my finger on it at the moment. If you would like some snippets of my code let me know. Any help is appreciated. Thanks again.</p>
