Accessing Form's Control from Custom Control
<p>I want to access the list box and add the item into it for my Custom control which is dynamically created on run time. I want to add the Item when I press the button place in the custom control, but it does not work. I have use the following code to work:</p>

<pre><code>    private void button1_Click(object sender, EventArgs e)
    {
        Form1 frm = new Form1();
        frm.ABC = "HI";
    }
</code></pre>

<p>the 'ABC' is the Public string on the form ie:</p>

<pre><code>    public string ABC
    {
       set { listBox1.Items.Add (value); }
    }
</code></pre>

<p>the above string works fine when I use it form the Button on the form and it adds the value in the lsitbox but whent I use it form the custom control's button the text of the 'value' changes but it does not add the item in list box.I have also try it on tabel but does not help. I change the Modifires of the ListBox1 from Private to Public but it does not works. The above function works well in the form but cannot work from the custom control.</p>

<p>Thanks.</p>
