HOW TO SOLVE: "Cross Thread Operation Not Valid" (DIRTY WAY)
Join the DZone community and get the full member experience.Join For Free
// description of your code here
System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = false; [put thread dirty code here - like setting property of a Form created in another form, which is a deadly sin by Microsoft] System.Windows.Forms.Control.CheckForIllegalCrossThreadCalls = true;
Opinions expressed by DZone contributors are their own.