English Deutsch Français Italiano Español Português 繁體中文 Bahasa Indonesia Tiếng Việt ภาษาไทย
All categories

I'm trying to make a program, and i need it to basically wait for a website to load, how can i tell the program to loop until the webBrowser loads the page?

2007-02-13 08:35:41 · 4 answers · asked by nick m 1 in Computers & Internet Programming & Design

4 answers

in visual baisc.NET:

Let the user decide:
WEB_BROWSER_NAME.
Navigate(TEXTBOX_NAME)

A predetermined place:
WEB_BROWSER_NAME.
Navigate("WEB_SITE")

NOTE: rember to change the web_browser_name to the name of the web browser and the textbox_name to the name of the textbox. Also, the Navigate... lines need to be moved up, did that because yahoo cuts you off after so long.

2007-02-13 09:30:53 · answer #1 · answered by stultz_is 2 · 0 0

You can use a flag to notify you that the page is loaded. A flag is pretty much a glorified boolean variable. Set it to false to begin and when the on_load event is finished, set the flag to true. Run your loop until the flag == true.

2007-02-13 09:05:31 · answer #2 · answered by SharpGirl 2 · 0 0

u can simply write the code like

public sub .....

do
{
ur block of code to loop
}
until me.brwWebBrowser_DownloadComplete();


end Sub



Enjoy
Suraj Sharma
http://cutesun.1gb.cc

2007-02-13 09:03:20 · answer #3 · answered by suraj s 2 · 1 0

WebBrowser1_NavigateComplete2

paste your code here

Sub end

2007-02-13 08:41:45 · answer #4 · answered by Say Bye 1 · 0 0

fedest.com, questions and answers