Textbox.text is not getting filled, C#
<p>i'm building a win App and in that, i'm having a textBox which is get filled dynamically, and i have a checkBox, when <code>checkBox.Checked=true</code> all the message boxes in my app will get pop'd<br>
(not all at a time, just confirmation msg's whereever i hv coded it, one by one).</p>

<p>my problem is when <code>checkBox</code> is checked, my <code>TextBox.Text</code> is getting filled its data but when that <code>checkBox</code> is unchecked, <code>TextBox.text</code> is not getting filled with data, wierd thing is when i tried to debug it, <code>TextBox.Text</code> is showing the text, but on gui <code>TextBox.Text</code> is not filled, now where`s data ?</p>

<pre><code>public void Recharge()
{
  txtTransactionMsgDelegate(Tm) // this is delegate function which fills the text
                               //textbox.text=tm;   i tried this one too,but no use

}
if (Program.AutoManual == "Auto")
{
   if (chkShowMsg.Checked)
   {
        if (returnRows &lt; 1)
            MessageBox.Show(Program.StatusMessage + " But Local Db Failed, NOTEDOWN IN NOTEBOOK");
        else
            MessageBox.Show(Program.StatusMessage + " And Local Db update SuccessFul, RUN UPDATE RECHARGE LATER");
    }
}
</code></pre>

<p>Delegate Function:</p>

<pre><code>// m using this delegate b'coz my above function i.e Recharge() is under BackGroundWorker Thread i.e BackGroundWorker_DoWork() event;
private void txtTransactionMsgDelegate(string Text)
{
   if (txtTransactionMsg.InvokeRequired)
   {
      txtTransactionMsg.Invoke(new Action(delegate() { txtTransactionMsgDelegate(Text); }));
   }
   else
     txtTransactionMsg.Text = Text;
 }
</code></pre>
