Re: Gui controls & Threads
Take a look at the Control.Invoke method.
The world holds two classes of men -- intelligent men without religion, and religious men without intelligence. Abu'l-Ala-Al-Ma'arri (973-1057; Syrian poet)
Re: Gui controls & Threads
Hi,
I've tried it, but the result was the same. 'Invoke' calls my method on the main thread, which means that the app stucks all the same.
Help!!!
Inbal
Re: Gui controls & Threads
Just a suggestion...
1) Create a new thread
2) Create new treeview (just class reference, no visuals) inside that thread
3) Populate the thread inside the class
4) When done, pass the reference of thread's treeview to the application's treeview and run a refresh on application's treeview