Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / .NET Framework / CLR / November 2006

Tip: Looking for answers? Try searching our database.

How to catch Internet Explorer events?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Tal Shachar - 10 Nov 2006 14:54 GMT
Hello,
I'm building a windows application, and I need to catch the open Microsoft
Internet Explorer events (e.g. changed url, new browser window opened,
current active browser, etc.) - Can anyone assist me with that? I managed to
know the location url of the open browsers by doing the following:
using SHDocVw;
.....

foreach (InternetExplorer ie in new ShellWindows())
{
   string url = ie.LocationURL;
}

.....

But that's it, I don't know how to continue from here (and if this is the
direction...), any ideas?

Appreciate all the help I can get.

TIA,

 -  Tal.
Ben Voigt - 10 Nov 2006 16:40 GMT
> Hello,
> I'm building a windows application, and I need to catch the open Microsoft
[quoted text clipped - 14 lines]
> But that's it, I don't know how to continue from here (and if this is the
> direction...), any ideas?

According to my MSDN, that InternetExplorer object has a bunch of events:

     BeforeNavigate Fires before navigation occurs in the given object (on
either a window or frameset element).
     BeforeNavigate2 Fires before navigation occurs in the given object (on
either a window or frameset element).
     CommandStateChange Fires when the enabled state of a command changes.
     DocumentComplete Fires when a document has been completely loaded and
initialized.
     DownloadBegin Fires when a navigation operation is beginning.
     DownloadComplete Fires when a navigation operation finishes, is
halted, or fails.
     FileDownload Fires to indicate that a file download is about to occur.
If a file download dialog is to be displayed, this event is fired prior to
the display of the dialog.
     NavigateComplete Fires after a navigation to a link is completed on
either a window or frameSet element.
     NavigateComplete2 Fires after a navigation to a link is completed on
either a window or frameSet element.
     NavigateError   Fires when an error occurs during navigation.
     NewWindow Fires when a new window is to be created.
     NewWindow2 Fires when a new window is to be created.
     NewWindow3 Raised when a new window is to be created. Extends
NewWindow2 with additional information about the new window.
     OnFullScreen Fires when the FullScreen property is changed.
     OnMenuBar Fires when the MenuBar property is changed.
     OnQuit Fires before the Internet Explorer application quits.
     OnStatusBar Fires when the StatusBar property is changed.
     OnTheaterMode Fires when the TheaterMode property is changed.
     OnToolBar Fires when the ToolBar property is changed.
     OnVisible Fires when the Visible property of the object is changed.
     PrintTemplateInstantiation   Fires when a print template has been
instantiated.
     PrintTemplateTeardown   Fires when a print template has been
destroyed.
     PrivacyImpactedStateChange   Fired when an event occurs that impacts
privacy or when a user navigates away from a URL that has impacted privacy.
     ProgressChange Fires when the progress of a download operation is
updated on the object.
     PropertyChange Fires when the PutProperty method of the object changes
the value of a property.
     SetSecureLockIcon Fires when there is a change in encryption level.
     StatusTextChange Fires when the status bar text of the object has
changed.
     TitleChange Fires when the title of a document in the object becomes
available or changes.
     UpdatePageStatus   Not currently implemented.
     WindowActivate Not currently implemented.
     WindowMove Not currently implemented.
     WindowResize Not currently implemented.

> Appreciate all the help I can get.
>
> TIA,
>
>  -  Tal.
Tal Shachar - 10 Nov 2006 20:13 GMT
Hi Ben,
Thanks for your quick response.
I familiar with some of these events, but I still don't know how to catch
them from my windows application form, and how to catch the specific event
on a specific open browser (if I have some open browsers).
I sure do need some assistance with that.
Thanks,
 - Tal.

>> Hello,
>> I'm building a windows application, and I need to catch the open
[quoted text clipped - 73 lines]
>>
>>  -  Tal.

Rate this thread:







Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.