Click here to Skip to main content
15,905,316 members
Home / Discussions / C#
   

C#

 
AnswerRe: remote delegate handling Pin
#realJSOP11-Feb-10 7:39
professional#realJSOP11-Feb-10 7:39 
GeneralRe: remote delegate handling Pin
kasraa0009800011-Feb-10 22:19
kasraa0009800011-Feb-10 22:19 
AnswerRe: remote delegate handling Pin
Not Active11-Feb-10 8:21
mentorNot Active11-Feb-10 8:21 
QuestionRe: remote delegate handling Pin
kasraa0009800011-Feb-10 22:14
kasraa0009800011-Feb-10 22:14 
AnswerRe: remote delegate handling Pin
Not Active12-Feb-10 1:50
mentorNot Active12-Feb-10 1:50 
Generalalternitive to CurrentForm CurForm = new CurrentForm(); Pin
tyjnfghnfgsdf11-Feb-10 7:17
tyjnfghnfgsdf11-Feb-10 7:17 
GeneralRe: alternitive to CurrentForm CurForm = new CurrentForm(); Pin
#realJSOP11-Feb-10 7:41
professional#realJSOP11-Feb-10 7:41 
GeneralRe: alternitive to CurrentForm CurForm = new CurrentForm(); Pin
Luc Pattyn11-Feb-10 10:40
sitebuilderLuc Pattyn11-Feb-10 10:40 
If this is a WinForms app (I can't tell from your post), then:
1. you are in the right forum;
2. if using WebBrowser, you should rely on the WebBrowser.DocumentCompleted event (and watch the URL that goes with it to decide whether it is the last one)
3. if you don't need to see the web page, you would be better of using HttpRequest and HttpResponse, which don't use any Control, and can work synchronously. This is how I do most web scraping.

Some coding comments:
1. a WebBrowser and a Thread are two different things, so calling a WebBrowser Thread is confusing everyone, you in the first place.
2. having a loop of DoEvents() is a horrible hack.
3. you should not use strings for something that is not inherently a string, so please replace Thread.ReadyState.ToString() != "Complete" by Thread.ReadyState!=WebBrowserReadyState.Complete


tyjnfghnfgsdf wrote:
To prevent the document complete even tfiring multiple times ive set it to the function below.


I don't understand you here. Is this the method that will handle the DocumentCompleted event? having it wait for completion doesn't achieve much; the multiple events will fire anyway, so they will get queued in the message queue and confuse you with some delay.

Smile | :)
Luc Pattyn [Forum Guidelines] [Why QA sucks] [My Articles]

I only read code that is properly formatted, adding PRE tags is the easiest way to obtain that.
All Toronto weekends should be extremely wet until we get it automated in regular forums, not just QA.

QuestionHow to close all form but not application.exit() Pin
nuttynibbles11-Feb-10 5:01
nuttynibbles11-Feb-10 5:01 
AnswerRe: How to close all form but not application.exit() Pin
N a v a n e e t h11-Feb-10 5:06
N a v a n e e t h11-Feb-10 5:06 
GeneralRe: How to close all form but not application.exit() Pin
OriginalGriff11-Feb-10 5:09
mveOriginalGriff11-Feb-10 5:09 
GeneralRe: How to close all form but not application.exit() Pin
N a v a n e e t h11-Feb-10 5:24
N a v a n e e t h11-Feb-10 5:24 
GeneralRe: How to close all form but not application.exit() Pin
OriginalGriff11-Feb-10 5:38
mveOriginalGriff11-Feb-10 5:38 
AnswerRe: How to close all form but not application.exit() Pin
OriginalGriff11-Feb-10 5:08
mveOriginalGriff11-Feb-10 5:08 
GeneralRe: How to close all form but not application.exit() Pin
nuttynibbles11-Feb-10 5:21
nuttynibbles11-Feb-10 5:21 
GeneralRe: How to close all form but not application.exit() Pin
OriginalGriff11-Feb-10 5:32
mveOriginalGriff11-Feb-10 5:32 
GeneralRe: How to close all form but not application.exit() Pin
nuttynibbles11-Feb-10 5:46
nuttynibbles11-Feb-10 5:46 
GeneralRe: How to close all form but not application.exit() Pin
OriginalGriff11-Feb-10 5:55
mveOriginalGriff11-Feb-10 5:55 
GeneralRe: How to close all form but not application.exit() Pin
nuttynibbles11-Feb-10 6:02
nuttynibbles11-Feb-10 6:02 
AnswerRe: How to close all form but not application.exit() Pin
#realJSOP11-Feb-10 6:00
professional#realJSOP11-Feb-10 6:00 
AnswerRe: How to close all form but not application.exit() Pin
SilimSayo11-Feb-10 9:17
SilimSayo11-Feb-10 9:17 
QuestionUsing Semaphore for multiple threads.... Pin
Jacob Dixon11-Feb-10 4:45
Jacob Dixon11-Feb-10 4:45 
AnswerRe: Using Semaphore for multiple threads.... Pin
N a v a n e e t h11-Feb-10 5:22
N a v a n e e t h11-Feb-10 5:22 
GeneralRe: Using Semaphore for multiple threads.... Pin
Jacob Dixon11-Feb-10 5:37
Jacob Dixon11-Feb-10 5:37 
AnswerRe: Using Semaphore for multiple threads.... Pin
Covean11-Feb-10 5:25
Covean11-Feb-10 5:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.