Webbrowser control

Mondeo

Centurion
Joined
Nov 10, 2006
Messages
128
Location
Sunny Lancashire
If I had 3 webbrowsers on a form and the following code.

Would all three webbrowsers do their navigation to the 3 pages at the same time, and present the results at roughly the same time? As if for example they were on seperate threads?

Thanks

Code:
Dim Browser1State as Int16 = 1 
Dim Browser2State as Int16 = 1 
Dim Browser3State as Int16 = 1 

Sub Form_Load 
WebBrowser1.Navigate("www.site1.com/login.aspx")
WebBrowser2.Navigate("www.site2.com/login.aspx") 
WebBrowser3.Naviagte("www.site3.com/login.aspx") 
End Sub 

Sub WebBrowser1.DocumentCompleted 
Select Case Browser1State 

Case 1 
Browser1State = 2
'Enter the login details and click the submit button

Case 2 
Browser1State = 3
'Enter parameters on page 2 and click submit

Case 3 
'Scrape some information off the results page 
End Sub 

Sub WebBrowser2.DocumentCompleted 
Select Case Browser2State 

Case 1 
Browser2State = 2
'Enter the login details and click the submit button

Case 2 Browser2State = 3
'Enter parameters on page 2 and click submit

Case 3 
'Scrape some information off the results page
End Sub

Sub WebBrowser3.DocumentCompleted
Select Case Browser3State

Case 1
Browser3State = 2
'Enter the login details and click the submit button

Case 2
Browser3State = 3
'Enter parameters on page 2 and click submit

Case 3 
'Scrape some information off the results page
End Sub

Thanks
 
Back
Top