|
-
Feb 17th, 2010, 04:23 PM
#1
UI Wait Method
Hi Guys,
I have a list of web pages that load into a CheckedListBox at run time.
These pages are user selectable.
Scenario One: Single Selection
The application loads the selected web pages and parse's the content, this could take a short time, or it can take a few minutes. - No problem here. I am using a BackgroundWorker to perform the parse.
Scenario Two: Multiple Selection
My query relates to a method that I can employ to deal with iteration of the CheckedListBox to process the next selected web page back on the UI.
I need to wait till the BW has finished before we can move on to the next page.
To illustrate, I could use something like the following on the UI:
Code:
Do Until blnX
Application.DoEvents()
Loop
For example blnX could be the BW completed.
In summery, I'm sure the above example is not best practice to hold up the UI's iteration of the CheckedListBox, until the current web page is processed.
Ideas?
Cheers.
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
|