|
-
Feb 22nd, 2004, 04:09 PM
#1
Thread Starter
New Member
Axwebbrowser - how to do actions depending on browsed site title!
First would like to say hi to everybody on the board, hope i learn alot and soon can also teach something 
I would like to know how can i check the webbrowser title and do actions depending on it like:
if title = x then do y
Thanks in advance
Regards
-
Feb 22nd, 2004, 04:43 PM
#2
something along these lines maybe ...
VB Code:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
AxWebBrowser1.Navigate("http://google.com")
End Sub
Private Sub AxWebBrowser1_DocumentComplete(ByVal sender As Object, ByVal e As AxSHDocVw.DWebBrowserEvents2_DocumentCompleteEvent) Handles AxWebBrowser1.DocumentComplete
If AxWebBrowser1.LocationName = "Google" Then
AxWebBrowser1.Navigate("http://msn.com")
End If
End Sub
~
if a post is resolved, please mark it as [Resolved]
protected string get_Signature(){return Censored;}
[vbcode][php] please use code tags when posting any code [/php][/vbcode]
-
Feb 22nd, 2004, 04:48 PM
#3
Thread Starter
New Member
Thanks alot m8, it worked pretty good, now just need to integrate it where i want (gonna try to find out how to do that by myself )
BTW do you know how to "configure" webbrowser control to not load images?
cheers
-
Feb 22nd, 2004, 04:57 PM
#4
you will need to look at the IDocHostUIHandler interface / or somehow get the source of the site / filter all the image tags out / load that source back in to your browser.
the link for IDocHostUIHandler on msdn ( C++ ) is ...IDocHostUIHandler
~
if a post is resolved, please mark it as [Resolved]
protected string get_Signature(){return Censored;}
[vbcode][php] please use code tags when posting any code [/php][/vbcode]
-
Feb 22nd, 2004, 05:13 PM
#5
Thread Starter
New Member
thanks alot m8, that is kinda out of my league but will take in consideratiion later
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|