Using Navigate to upload more than one link to Webbrowser

Asked

Viewed 332 times

1

How to do the Navigate go to the next link after the first one has loaded? I’ve tried a few things but failed.

nomedobrowser.Navigate("http://reidocrime.com/");
nomedobrowser.Navigate("http://reidocrime.com/map/);

1 answer

1

Do it at the event DocumentCompleted, it occurs when the WebBrowser ends loading a document.

private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
{
   webBrowser1.Navigate("http://reidocrime.com/map/");
}
  • for what I want it has no use to me,?

  • I am making a bot for a game and it is the basis of links, I would like it to open one link after the other, and so make a loop

Browser other questions tagged

You are not signed in. Login or sign up in order to post.