I have 44 html addresses and i want each time to navigate to one html address.
for (int i = 1; i < 45; i++)
{
adrBarTextBox.Text = sourceUrl + i;
getCurrentBrowser().Navigate(adrBarTextBox.Text);
}
In the webbrowser document completed event i need that only when it finished to navigate and loading all the page including javascript and everything only then to navigate to the next html address.
private void Form1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
// If page loaded completly then do something
}
The problems are that the loop will try to navigate each time a new page html before the last one loaded and before i did with it something in the completed event.
Aucun commentaire:
Enregistrer un commentaire