943,954 Members | Top Members by Rank

Ad:
Jul 5th, 2008
0

timer in VB?

Expand Post »
hi
how to make the process sleep until my webbrowser gets loaded.
this is my code


webbrowser1.navigate("www.google.co.in")
text=webbrowser1.document.body.innertext



pls send me the code
Similar Threads
Reputation Points: 10
Solved Threads: 0
Newbie Poster
mykar_88 is offline Offline
17 posts
since Mar 2008
Jul 5th, 2008
0

Re: timer in VB?

Use BeforeNavigate Event and NavigateComplete Event.

Ex.
Draw a Command Button (Command1) and PictureBox (Picture1)
Draw WebBrowser Control (WebBrowser1) inside PictureBox

Visual Basic 4 / 5 / 6 Syntax (Toggle Plain Text)
  1. Private Sub Command1_Click()
  2. WebBrowser1.Navigate ("www.google.co.in")
  3. End Sub
  4.  
  5. Private Sub WebBrowser1_BeforeNavigate2(ByVal pDisp As Object, URL As Variant, Flags As Variant, TargetFrameName As Variant, PostData As Variant, Headers As Variant, Cancel As Boolean)
  6. Picture1.Enabled = False
  7. End Sub
  8.  
  9. Private Sub WebBrowser1_NavigateComplete2(ByVal pDisp As Object, URL As Variant)
  10. Picture1.Enabled = True
  11. End Sub

Instead of PictureBox u can use Frame Control
Last edited by selvaganapathy; Jul 5th, 2008 at 11:21 pm.
Reputation Points: 44
Solved Threads: 101
Posting Pro
selvaganapathy is offline Offline
547 posts
since Feb 2008

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in Visual Basic 4 / 5 / 6 Forum Timeline: maskedbox
Next Thread in Visual Basic 4 / 5 / 6 Forum Timeline: text file strings help





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC