RSS Forums RSS

timer in VB?

Please support our Visual Basic 4 / 5 / 6 advertiser: Programming Forums
Reply
Posts: 16
Reputation: mykar_88 is an unknown quantity at this point 
Solved Threads: 0
mykar_88 mykar_88 is offline Offline
Newbie Poster

timer in VB?

  #1  
Jul 5th, 2008
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
AddThis Social Bookmark Button
Reply With Quote  
Posts: 505
Reputation: selvaganapathy is an unknown quantity at this point 
Solved Threads: 87
selvaganapathy's Avatar
selvaganapathy selvaganapathy is offline Offline
Posting Pro

Re: timer in VB?

  #2  
Jul 5th, 2008
Use BeforeNavigate Event and NavigateComplete Event.

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

  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
  12.  

Instead of PictureBox u can use Frame Control
Last edited by selvaganapathy : Jul 5th, 2008 at 10:21 pm.
KSG
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Similar Threads
Other Threads in the Visual Basic 4 / 5 / 6 Forum
Views: 922 | Replies: 1 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 3:07 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC