main() { thread start(method1); // thread run method1 } method1() { while(true) delegate(method2); // run method2 } method2() { listbox.items.add("test"); }
method1() { while(true) { thread.sleep(1000); delegate(method2); // run method2 } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)