|
-
Nov 25th, 2000, 08:31 AM
#1
Thread Starter
Fanatic Member
I have a function called Go(HowMany As Integer). I want this function to go to a WebPage over and over which is specified by HowMany! But I also want it to wait untill the page is full loaded and then go to the page again! If u need me to clairify things for please say so! This is important!
Visual Basic 6.0
Visual C++ 5
Delphi 5

-
Nov 25th, 2000, 09:46 AM
#2
Fanatic Member
To do something as many times as HowMany says:
Code:
Private Sub Go(HowMany As Integer)
'do it HowMany times
For i = 1 To HowMany
'do stuff here
'...
Next
End If
And to download a webpage: http://www.vbsquare.com/tips/tip171.html.
-
Nov 25th, 2000, 10:20 AM
#3
Use the Navigate function for the WebBrowser Control to go to webpages.
-
Nov 25th, 2000, 10:33 AM
#4
Thread Starter
Fanatic Member
Megatron, I know that but I want my function to wait untill the webbrowser is ready and then go to another webpage!
Visual Basic 6.0
Visual C++ 5
Delphi 5

-
Nov 25th, 2000, 10:35 AM
#5
Hyperactive Member
i think there is an event in the webcontrol that allows you to see when the file finished ... it something completedownload or document ... i am currently vb-less cause i formatted so i can't check it for u
-
Nov 25th, 2000, 04:54 PM
#6
The Webbrowser Control has a ReadyState property which is what you are probably looking for.
And here are it's tags:
READYSTATE_COMPLETE
READYSTATE_INTERACTIVE
READYSTATE_LOADED
READYSTATE_LOADING
READYSTATE_UNINITIALIZED
I guess it's used like:
Code:
WebBrowser1.Navigate "http://www.vb-world.net"
If WebBrowser1.ReadyState = READYSTATE_COMPLETE Then
MsgBox "Vb-World has been fully loaded.", _
32, "Where do you want to go today?"
End If
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|