![]() 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. The ReportProgress method inside DoWork raises the ProgressChanged event. ![]() In our program we have added some sleep after each line is read in order to simulate a time-consuming operation. This is achieved by calling the ReportProgress method of background worker object. 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. The progress of this background operation is reported after each line is read. The BOM entry takes the longest (about 30 to 45 seconds) because it loads a form that reads 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. ![]() 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). I'm new to the BackgroundWorker Class and Multi-threading, but I think something like this is what I'm needing.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |