Webbrowser.documenttext not updating

The WB just needs a little push, like application.doevents. Do Events (Without Do Events, it won't que the next video, and either it goes blank, or plays the old video again) This works fine for me: string html = text Box1. I haven't needed to naviate to about:blank or anything else to make this work. (Exception from HRESULT: 0x80070002)" BUT If I open Google (or any other page), and if I then click any link in web Browser, and after that try to get html content, all works fine... HR The content is fetched in the web browser asynchronously. Docum ent Text' threw an exception of type 'System. If I do this: ---------------------------------- private void btn Google_click(object sender, Event Args e) ---------------------------------- and after that try this: ----------------------------------- string html; html = web Browser1. To String(); ------------------------------------ I get error: "The system cannot find the file specified. Regardless, if that second line was not executing, then an exception could be the onlyh reason. You will have to wrap in a try/catch block to figure out whatthe exception is (you can look at it in the debugger too). :) When I click on a link in browser it get's automaticly focused, that's why I always got Document Text when I clicked link.. Problem is that web Browser control MUST be FOCUSED before taking Document Text...Is there any way to get HTML content while navigating automaticly (with my buttons).. You should wait until the downloading is done before you try and access the Document Text property. HR -" I have very strange and stupid problem with . If I do this: ---------------------------------- private void btn Google_click(object sender, Event Args e) ---------------------------------- and after that try this: ----------------------------------- string html; html = web Browser1. To String(); ------------------------------------ I get error: "The system cannot find the file specified.

webbrowser.documenttext not updating-78

Users can select options and preview pane reflects those changes automatically.

IOException - File Name null string - Fusion Log null string - Message "The system cannot find the file specified. when I click on a link in web Browser and then look at Document Text after Document Completed event i get this: - Document Text -it's value is HTML content of a page, and type is string..is prefect :-( I really don't have idea why is this happening...

but When I call navigate, webbrowser doesn't get focused, so i have to focus it manually before taking Document Text...

Is there any way to get HTML content while navigating automaticly (with my buttons).. You will have to wrap in a try/catch block to figure out what the exception is (you can look at it in the debugger too). You will have to wrap in a try/catch block to figure out what the exception is (you can look at it in the debugger too).

Try/catch gives no result...exception.just continues...

Leave a Reply