CD-Softy
April 28th, 2007, 04:07 PM
Hi,
I need help from a multi-threading VB.NET guru!
I have a simple windows form with a treeview control on it. I want to load the form and show the treeview control (this is easily done). But now, I would like to start a background process after the form is displayed to load the treeview with information from a database in the background while displaying a progress bar in the treeview control (AJAX style). When the bg worker has loaded all the data to the treeview, the progress bar disappears and the treeview is shown to the user.
The nodes on the tree are multi-level so there is some recursion that is needed too.
I have never used multi-threading before, so this is all new to me. I have looked at the MSDN examples for the bg worker component but it's beyond me.
My preference is VB.NET, but I can translate C# code ...
Please help.
I need help from a multi-threading VB.NET guru!
I have a simple windows form with a treeview control on it. I want to load the form and show the treeview control (this is easily done). But now, I would like to start a background process after the form is displayed to load the treeview with information from a database in the background while displaying a progress bar in the treeview control (AJAX style). When the bg worker has loaded all the data to the treeview, the progress bar disappears and the treeview is shown to the user.
The nodes on the tree are multi-level so there is some recursion that is needed too.
I have never used multi-threading before, so this is all new to me. I have looked at the MSDN examples for the bg worker component but it's beyond me.
My preference is VB.NET, but I can translate C# code ...
Please help.