Your statement is incorrect.  It should be:

 this.BeginInvoke(new appendToTextBoxDelegate(appendToTextBox), new object[]
{ Txt });
...Glenn
On Fri, Oct 31, 2008 at 2:57 PM, Dickery1 <[EMAIL PROTECTED]> wrote:

>
> am i missing something here. i get error
> 'Txt' is a 'variable' but is used like a 'method'
> E:\TradingTools\CODE
> \collectTickData\Form1.cs
>
> i dont see anything wrong.
>
>        private delegate void appendToTextBoxDelegate(String Txt);
>
>        private void appendToTextBox(String Txt)
>        {
>            if (this.InvokeRequired)
>            {
>                this.BeginInvoke(new appendToTextBoxDelegate(Txt), new
> object[] { Txt }); // <<<<<<<<<THIS IS WHERE IT ERRORS OUT.
>                return;
>            }
>            textBox1.Text += Txt;
>        }
>

Reply via email to