Click here to Skip to main content
15,892,746 members
Home / Discussions / .NET (Core and Framework)
   

.NET (Core and Framework)

 
AnswerRe: setup Pin
Dave Kreskowiak16-Apr-09 4:16
mveDave Kreskowiak16-Apr-09 4:16 
Questionabout ms-word Pin
p_m_kanthi15-Apr-09 22:54
p_m_kanthi15-Apr-09 22:54 
AnswerRe: about ms-word Pin
Eddy Vluggen15-Apr-09 23:46
professionalEddy Vluggen15-Apr-09 23:46 
AnswerRe: about ms-word Pin
vsaratkar23-Apr-09 8:39
vsaratkar23-Apr-09 8:39 
GeneralRe: about ms-word Pin
p_m_kanthi23-Apr-09 16:07
p_m_kanthi23-Apr-09 16:07 
QuestionGroup Policy Pin
Siddharth Rastogi15-Apr-09 20:19
Siddharth Rastogi15-Apr-09 20:19 
QuestionWebBrowser - wait for document to complete (threading?) Pin
Viktor Nilsson15-Apr-09 10:35
Viktor Nilsson15-Apr-09 10:35 
AnswerRe: WebBrowser - wait for document to complete (threading?) Pin
Luc Pattyn15-Apr-09 11:02
sitebuilderLuc Pattyn15-Apr-09 11:02 
Hi,

just like all "completed" and "received" handlers, DocumentCompleted executes on a separate thread.

So you could use an AutoResetEvent() and apply a WaitOne() which keeps your business logic from running ahead; then have a Set() in the DocumentCompleted handler, allowing your logic to continue.

I foresee one major problem though: I have experienced DocumentCompleted is not trustworthy, a web page may call other (sub)documents and some or all of them fire DocumentCompleted, so you will have to see if that happens, and try and figure out a way to determine the entire page has loaded...

Maybe you don't need to see the WebBrowser control, and you then could consider, as a last resort, to create a new one after every (problematic) page.

Smile | :)

Luc Pattyn [Forum Guidelines] [My Articles]

Avoiding unwanted divs (as in "articles needing approval") with the help of

GeneralRe: WebBrowser - wait for document to complete (threading?) Pin
Viktor Nilsson15-Apr-09 12:02
Viktor Nilsson15-Apr-09 12:02 
GeneralRe: WebBrowser - wait for document to complete (threading?) Pin
Luc Pattyn15-Apr-09 12:08
sitebuilderLuc Pattyn15-Apr-09 12:08 
GeneralRe: WebBrowser - wait for document to complete (threading?) Pin
dojohansen15-Apr-09 21:06
dojohansen15-Apr-09 21:06 
GeneralRe: WebBrowser - wait for document to complete (threading?) Pin
dojohansen15-Apr-09 21:32
dojohansen15-Apr-09 21:32 
AnswerRe: WebBrowser - wait for document to complete (threading?) [modified] Pin
Luc Pattyn16-Apr-09 0:07
sitebuilderLuc Pattyn16-Apr-09 0:07 
QuestionTreeView Check Box State Problems Pin
Tristan Rhodes15-Apr-09 2:24
Tristan Rhodes15-Apr-09 2:24 
AnswerRe: TreeView Check Box State Problems Pin
Henry Minute16-Apr-09 12:24
Henry Minute16-Apr-09 12:24 
GeneralRe: TreeView Check Box State Problems Pin
Tristan Rhodes16-Apr-09 23:11
Tristan Rhodes16-Apr-09 23:11 
Question.NET Workflow for Upgrade Wizard? Pin
Brady Kelly14-Apr-09 23:42
Brady Kelly14-Apr-09 23:42 
AnswerRe: .NET Workflow for Upgrade Wizard? Pin
Pete O'Hanlon15-Apr-09 1:35
mvePete O'Hanlon15-Apr-09 1:35 
GeneralRe: .NET Workflow for Upgrade Wizard? Pin
Brady Kelly15-Apr-09 1:39
Brady Kelly15-Apr-09 1:39 
QuestionCreate Custom Event Source by turing UAC ON in Windows VISTA Pin
Vipul Mehta14-Apr-09 23:12
Vipul Mehta14-Apr-09 23:12 
AnswerRe: Create Custom Event Source by turing UAC ON in Windows VISTA Pin
Mark Salsbery15-Apr-09 7:13
Mark Salsbery15-Apr-09 7:13 
Questionvb.net to acceess Pin
radhika bhatt14-Apr-09 21:15
radhika bhatt14-Apr-09 21:15 
AnswerRe: vb.net to acceess Pin
Narendra Reddy Vajrala14-Apr-09 23:31
Narendra Reddy Vajrala14-Apr-09 23:31 
QuestionUnable to emit assembly: Referenced assembly 'Interop.ADODB' does not have a strong name Pin
MarcelloTurnbull14-Apr-09 8:49
MarcelloTurnbull14-Apr-09 8:49 
AnswerRe: Unable to emit assembly: Referenced assembly 'Interop.ADODB' does not have a strong name Pin
Eddy Vluggen14-Apr-09 10:15
professionalEddy Vluggen14-Apr-09 10:15 

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.