0
Reply

Multi-thread for Win Form

Shawn Leenerts

Shawn Leenerts

Sep 26 2011 2:13 PM
1.3k
I'm new to the BackgroundWorker Class and Multi-threading, but I think something like this is what I'm needing.  I've got a program I've written in VB.Net that allows a user to load in several CAD parts into a ListView and perform several tasks like copy parts to a directory for nesting, create IGES files, create PDF's from drawings, and input part data into AS400 databases (BOM).  The BOM entry takes the longest (about 30 to 45 seconds) because it loads a form that read's all parts belonging to the BOM and shows them in a TreeView to give the user the ability to select at what level the part should be inserted.  What I would like to do is be able to open the BOM form after the user clicks the Process button and have it run in the background while all of the other stuff is processed, then have the BOM form show after everything else has been completed.  I've Googled and read several articles regarding the BackgroundWorker Class and Multi-threading, but haven't found anything that pertained to an entire form.  Any help will be appreciated.  Thank you in advance.

Regards,
Shawn