Any solution to the "illegal cross thread call" ? *

Question

When you data bind in C#, the thread that changes the data causes the control to change too. But if this thread is not the one on which the control was created, you'll get the above exception.

I surfed the net and found no good answer.

Anyone?

Answer

Re: 2004

No, you will only move the code that changes the data into the delegate function (because the data change is what triggers the control update). Other than that, you should not have to write anything extra.

< br > via < a class="StackLink" href=" http://stackoverflow.com/questions/1994/" >Any solution to the "illegal cross thread call" ?< /a>
Share on Google Plus

About Cinema Guy

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment
    Facebook Comment

0 comments:

Post a Comment