|
-
Aug 29th, 2012, 01:13 AM
#1
Thread Starter
Addicted Member
Alternatives to the BackgroundWorker?
Some of you may remember my thread I posted a couple weeks ago looking for an alternative to application.doevents. For those that don't I foolishly started using application.doevents in my project, to prevent the form from locking up, well it worked great until I started adding more features to the program, then I started getting so many odd bugs, everytime I found a workaround for the bugs, it would cause the program to bug out somewhere else.
So the background worker was suggested, although in my case I can't use it. I have a class and in the class I have a sub that I call from a seperate form. When the sub is called it starts going through a loop that is completing different processes. This class sub has to access controlson this form. Such as a selecting items in a listview, parsing items in a listview, enabling buttons etc, and I also need to keep my parameters on this sub.
So basically I foundout I can't use the background worker. So what is an alternative to this? I need to do something I can't stand seeing the application I worked so hard on having al the bugs from .doevents. Also it would be too much work to go back and restructure the application.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|