Hi. how do i make vb.net webbrowser control click into a iframe.
i want it to click the banner on: http://1matrixclub.com/
Printable View
Hi. how do i make vb.net webbrowser control click into a iframe.
i want it to click the banner on: http://1matrixclub.com/
Hi, I just looked at the html doc for the page an found the iframe ref
you could access this easy by using a webBrowser controlCode:<iframe width="728" height="90" allowtransparency="false" frameborder="0" hspace="0" vspace="0" marginheight="0" marginwidth="0" scrolling="no" src="http://www.promoteburner.com/code.php?id=2448&l=2" name="lolz"></iframe>
1/ navigate to the website (http://1matrixvlub.com)
2/ on Document Completed event get the pages html and parse it to find the src info within the iframe
3/ supply this src url into the webbrowser navigate event
buuuuuuuuuuuuuuuuuuuuuuump
ok put a webbrowser on a form and try this
p.s. that site has now vanished lolCode:Public Class Form1
Private Sub WebBrowser1_DocumentCompleted(ByVal sender As System.Object, ByVal e As System.Windows.Forms.WebBrowserDocumentCompletedEventArgs) Handles WebBrowser1.DocumentCompleted
' this takes the first link on the page and navigatres to this page
' we put the if so that it doesn't do it once it reaches any page other than matrixclub.com
If WebBrowser1.Url.AbsoluteUri = "http://matrixclub.com/" Then
Dim link As String = WebBrowser1.Document.Links.Item(1).InnerText
WebBrowser1.Navigate(link)
End If
End Sub
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
WebBrowser1.Navigate("http://matrixclub.com/")
End Sub
End Class
replace the entire code for the form with it
-BUUUUUUUUUUMP-
Still looking please