Blocks Pop-ups and you can still open links in a new window.
Hey man.
I have been making my web browser, and it rocks!!
but i downloaded yours, and was interested to see the "File, Tools, Internet Options"
This looks like a hugely useful tool, but i cant make it work!!!
What code did you use to open the Internet Options please??
Blocks Pop-ups and you can still open links in a new window.
I have been looking for a way to open links in new window when a user RIGHT clicks on the menu and selects Open In New Window. This app is the only one I found that opens a new window,,, but there is no Source for VB6...
Can anyone supply the actual example on HOW TO open a a link in new window when user right clicks on the link and selects OPEN IN NEW WINDOW
I have tried to use this tutorial to open up a web page, fill out a form (you put in an IP address and info about that address comes out after submission) and extract the data from the form.
It works in the web browser window, I display the data from the filled out form successfully.
However, after the data is displayed the "WebBrowser1.Document.body.innerHTML" values do not match the displayed information.
Why is this.
Here is my code-
Code:
Private Sub Command1_Click()
Dim doc As HTMLDocument
Dim strHTML As String
'go to the altavista (text) search page
WebBrowser1.Navigate "http://www.ip2location.com/free.asp"
'Wait until page is loaded
Do
DoEvents
Loop Until Not WebBrowser1.Busy
'Make doc reference to the document inside the webbrowser control
Set doc = WebBrowser1.Document
'Set field ipaddresses with the value of Text1
SetInputField doc, 0, "ipaddresses", Text1
'Submit the form
doc.Forms(0).submit
'Wait until result are loaded
Do
DoEvents
Loop Until Not WebBrowser1.Busy
'loop till we have some stuff in strHTML
Do
DoEvents
strHTML = WebBrowser1.Document.body.innerHTML
Loop Until (Len(strHTML) > 400)
'
' read in the text into string variable
'
strHTML = WebBrowser1.Document.body.innerHTML
Text2.Text = strHTML
'
'text is not matching the window.
'
What I want to do is put in some ip addresses and "submit" and then extract the results from a string variable. I see in the screen the results but the variable does not match. Using VB6 and IE6