c# - Multithreading doesn't refresh the form -
i'm having problem multithreading, working forms. problem is: have form , 1 more class. i'm having problem refresh form screen. form screen has 5 checkboxes checked or not according 5 properties on sample class. public boolean ip1 { get; set; } public boolean ip2 { get; set; } public boolean ip3 { get; set; } public boolean ip4 { get; set; } public boolean ip5 { get; set; } the main form class has function private void test() called when form loading: new thread(test).start(); the private void test() function 1 call sample.getcon() inside sample class , function getcon() calls more 5 threads makes pings in differently ip's , set properties of ip1, ip2, ip3... form class inside function private void test() refresh form with: this.begininvoke((action)(() => checkbox1.checked = sample.ip1; checkbox1.checked = sample.ip2; checkbox1.checked = sample.ip3; checkbox1.checked = sam...