Web browser loading property

G

g62msdnatll

PLATFORM: Any web browser including: IE, Mozilla, and Firefox running in
Windows XP, code in .NET C#

1) Given a System.Diagnostics.Process corresponding to the browser process,
is there a property that will tell you if the browser is currently loading a
page? The Status property is always "Wait" and the WaitReason property
doesn't seem to reveal the information I'm looking for.
2) Is there an interface all browsers implement that might expose
browser-specific properties?

GOAL: To determine if a browser is loading a page.
 
P

Peter Huang [MSFT]

Hi

1) I do not think Process can tell if a webbrowser has loaded a page,
because the Process is a managed wrap of win32 Process, it contains the
information about the common process, not a specified a webbrowser process.

2) I am not familar with Mozilla, and Firefox. For IE, it has specifiled
property to tell us the information.

Process Members
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpref/html/
frlrfsystemdiagnosticsprocessmemberstopic.asp

Document Retrieves the automation object of the active document, if any.
Busy Retrieves a BOOL value indicating whether the object is engaged in a
navigation or downloading operation.
ReadyState Retrieves the ready state of the object.

IWebBrowser2 Interface
http://msdn.microsoft.com/library/default.asp?url=/workshop/browser/webbrows
er/reference/ifaces/iwebbrowser2/iwebbrowser2.asp

For other two browser, i think you may try to contact their develop for
detailed information.

http://www.mozilla.org/products/mozilla1.x/
http://www.mozilla.org/


Best regards,

Peter Huang
Microsoft Online Partner Support

Get Secure! - www.microsoft.com/security
This posting is provided "AS IS" with no warranties, and confers no rights.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top