jeudi 12 mars 2015

Cross-thread operation not valid: Control 'statusStrip' accessed from a thread other than the thread it was created on

I Have try this. http://ift.tt/1FR6Z1s


like toolStripStatusLabel1.InvokeRequired


but toolStripStatusLabel1 has no InvokeRequired


and I has try this too. http://ift.tt/1F2f1WI


and it error like invalid argument on



SetTextCallback d = new SetTextCallback(SetText);
form.Invoke(d, new object[] { form, ctrl, text });


when I use



ThreadHelperClass.SetText(this, toolStripStatusLabel1, "This text was set safely.");


but not error when I use textBox


Aucun commentaire:

Enregistrer un commentaire