Results 1 to 40 of 108

Thread: vb web browser tutorial

Hybrid View

  1. #1
    New Member
    Join Date
    Jan 2008
    Posts
    3

    Re: vb web browser tutorial

    where can i get a downlaodable version of this project??? urgent...

  2. #2

    Thread Starter
    Hyperactive Member
    Join Date
    Apr 2006
    Posts
    384

    Re: vb web browser tutorial

    Quote Originally Posted by nelton
    where can i get a downlaodable version of this project??? urgent...
    sorry but i don't have it .. i made it a while ago!

  3. #3
    Member MSWindowsUser's Avatar
    Join Date
    Dec 2007
    Posts
    40

    Thumbs up Re: vb web browser tutorial

    Quote Originally Posted by nelton
    where can i get a downlaodable version of this project??? urgent...
    Do you have VB6 on your PC? If so, download mine.

    Blocks Pop-ups and you can still open links in a new window.
    Attached Files Attached Files

  4. #4
    Lively Member
    Join Date
    Mar 2008
    Posts
    92

    Re: vb web browser tutorial

    Quote Originally Posted by MSWindowsUser
    Do you have VB6 on your PC? If so, download mine.

    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??

    Thanks man!

  5. #5
    Lively Member
    Join Date
    Mar 2008
    Posts
    92

    Re: vb web browser tutorial

    Here is the code i am using just now for my Internet Options button

    It doesnt work
    can you help plz?

    vb Code:
    1. Private Sub IOptions_Click()
    2. Shell ("Control Panel/Internet Options")
    3. End Sub

  6. #6
    Lively Member
    Join Date
    Mar 2008
    Posts
    92

    Re: vb web browser tutorial

    Never mind, Hack helped me

    if anyone is interested, the code to launch internet options is...

    vb Code:
    1. Private Sub IOptions_Click()
    2. Shell "C:\Windows\System32\control.exe" & " Inetcpl.cpl", 1
    3. End Sub

  7. #7
    New Member
    Join Date
    Oct 2008
    Posts
    2

    Re: vb web browser tutorial

    Quote Originally Posted by MSWindowsUser
    Do you have VB6 on your PC? If so, download mine.

    Blocks Pop-ups and you can still open links in a new window.
    What is the code for the status bar? How do you do it? Sorry I'm noob.

  8. #8
    Hyperactive Member
    Join Date
    Jun 2008
    Posts
    355

    Re: vb web browser tutorial

    Quote Originally Posted by MSWindowsUser View Post
    Do you have VB6 on your PC? If so, download mine.

    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

  9. #9
    Member
    Join Date
    Nov 2008
    Posts
    35

    Re: vb web browser tutorial

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width