Hi,
I made an application that foreach directory that found in the hardisk
create a node into a treeview.
Of course, to avoid that the user interface gets blocked, i use a handler in
a syncronous way.
The problem is that when i execute the application and click a button to
fill the treeview, dont fill anything.
This is my code inside the Onclick method of the button:
GetHTMLHandler handler = new GetHTMLHandler(Begin);
AsyncCallback cb = new AsyncCallback(this.Finish);
handler.BeginInvoke("Root",this.textBox1.Text,cb, null);
But if i call to the application in a syncronous way, the treeview is filled
perfect (but with the blocked of the graphic interface)
What im doing wrong, i think that there is anything wrong with the threads,
but i dont know clearly what it is.
--
Thanks a lot.
Regards.
Josema