[RESOLVED] Threw an exception of type ‘Microsoft.VisualStudio.Debugger.Runtime.CrossThreadMessagingException’

threw an exception of type ‘Microsoft.VisualStudio.Debugger.Runtime.CrossThreadMessagingException’



textBox1.Invoke(       new MethodInvoker(           delegate { textBox1.AppendText("."); }));

2 Responses to this post.

  1. Posted by Dan McCormick on 19.12.11 at 2:40 pm

    Tried it on a Label control without success. It should be for any control I would assume.
    I am using System.Thread.Timer.

    The error persists.

  2. Posted by victor salinas on 19.12.11 at 2:40 pm

    Thanks you saved my life,
    I was trying to get some text on a textbox from inside a “HandleEvent”
    now It’s working thanks to You.

What's your thoughts on this?


Protected by WP Anti Spam