Edit label control from other form
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/12795668/c-sharp-text-dont-display-on-another-form-after-double-clicking-an-item-in-list">C# Text don’t display on another form after double clicking an item in listbox</a>  </p>
</blockquote>



<p>I am beginner in c#. I want to edit a label <code>lblText</code> present in a form <code>subForm</code> from other form <code>mainForm</code> whenever user clicks the buttons <code>btnHigh</code> and <code>btnLow</code>(these buttons are in <code>mainForm</code>).</p>

<pre><code> For btnHigh_Click event  --&gt; lblText should have text "high"
 For btnLow_Click event   --&gt; lblText should have text "low"
</code></pre>

<p>I tried the below code :(<em>not working</em>)</p>

<p><strong>btnHigh_Click Event</strong></p>

<pre><code>        subForm sf = new subForm ();
        sf.ShowDialog();
        sf.lblText.Text = "High";  // lblText --&gt; modifier is public
</code></pre>

<p>What i am doing wrong here?</p>

<p>Please Help
<br>Thanks in Advance.</p>
