I have a thread running in the background checking things, etc.
The output is this:
Cross-thread operation not valid: Control 'comboBox1' accessed from a thread other than the thread it was created on.
The code is:
if (comboBox1.Text != "")
{
if (Race != comboBox1.Text) { return; }
}
Obviously, ComboBox1 wasn't created on the thread I'm running the check on, is there anyway I can check ComboBox1's text across threads?
Note: This is on 7 different occasions, occurring with 5 ComboBox's, 1 TextBox, and a ListView.
Note 2: I've been told that I need to invoke my form, how would I go about doing this? I've never even heard of invoking a entire form.

New Topic/Question
Reply



MultiQuote




|