Results 1 to 7 of 7

Thread: Noticing If WebBrowsers Changed

  1. #1

    Thread Starter
    New Member
    Join Date
    May 2007
    Posts
    6

    Noticing If WebBrowsers Changed

    Is there anyway to notice if a webbrowser has changed so you can then write an If state eg:

    Code:
    If WebBrowser1.Changes Then Timer1.Enabled = True

  2. #2
    New Member
    Join Date
    May 2007
    Posts
    14

    Re: Noticing If WebBrowsers Changed

    Code:
    Private Sub WebBrowser1_PropertyChange(ByVal szProperty As String)
    Timer1.Enabled = True
    End Sub
    try that

  3. #3

    Thread Starter
    New Member
    Join Date
    May 2007
    Posts
    6

    Re: Noticing If WebBrowsers Changed

    Okay its working and enabling timer1 but the only problem is it does that the start because of

    Code:
    WebBrowser1.Navigate "http://mysite.com"
    I want that code to take effect after mysite has loaded!

  4. #4
    New Member
    Join Date
    May 2007
    Posts
    14

    Re: Noticing If WebBrowsers Changed

    i think i get what your saying. so then it would be this instead:
    Code:
    Private Sub WebBrowser1_NavigateComplete2(ByVal pDisp As Object, URL As Variant)
    Timer1.Enabled = True
    End Sub

  5. #5

    Thread Starter
    New Member
    Join Date
    May 2007
    Posts
    6

    Re: Noticing If WebBrowsers Changed

    That also enables the timer as the form loads!

  6. #6
    New Member
    Join Date
    May 2007
    Posts
    14

    Re: Noticing If WebBrowsers Changed

    so you want it to enable only when the site is www(dot)mysite(dot)com?
    Last edited by sweyko5; May 13th, 2007 at 04:51 PM.

  7. #7
    PoorPoster iPrank's Avatar
    Join Date
    Oct 2005
    Location
    In a black hole
    Posts
    2,728

    Re: Noticing If WebBrowsers Changed

    Usefull VBF Threads/Posts I Found . My flickr page .
    "I love being married. It's so great to find that one special person you want to annoy for the rest of your life." - Rita Rudner


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