Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6125487
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T16:15:13+00:00 2026-05-23T16:15:13+00:00

I have a for loop and inside there is a navigate method for a

  • 0

I have a for loop and inside there is a navigate method for a browser. and it’s suppose to load diffrent sites, but the problem is that it will start to load 1 site and before it will load it, it’ll load another site. so I need to like pause it until it’s completed.

I started to write an event to when the ProgressChanged event is at 100%.. than I figured I don’t have any idea what to do next but I think it’s a start.
Please help, Thanks!

Edit: I am using Forms as Roland said.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T16:15:13+00:00Added an answer on May 23, 2026 at 4:15 pm

    I assume you are doing windows forms programming. The event you want is DocumentCompleted Here’s an example:

    public Uri MyURI { get; set; }
    
    public Form1()
    {
        InitializeComponent();
    
        MyURI = new Uri("http://stackoverflow.com");
        webBrowser1.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(webBrowser1_DocumentCompleted);
        webBrowser1.Url = MyURI;
    }
    
    void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
    {
        if(e.Url == MyURI)
            MessageBox.Show("Page Loaded");
    }
    

    For a list of URIs it’s straight forward.

    public int CurrentIndex = 0;
    List<Uri> Uris;
    
    public Form1()
    {
        InitializeComponent();
    
        Uris = new List<Uri> { new Uri("http://stackoverflow.com"), new Uri("http://google.com/") };
    
        webBrowser1.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(webBrowser1_DocumentCompleted);
    
        webBrowser1.Url = Uris[CurrentIndex];
    }
    
    void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
    {
        WebBrowser browser = (WebBrowser)sender;
        if (e.Url == Uris[CurrentIndex])
        {
            CurrentIndex++;
            if (CurrentIndex < Uris.Count)
            {
                browser.Url = Uris[CurrentIndex];
            }
        }
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a for loop. Inside that loop I want to fill up an
Suppose, I have a if statement inside a for loop: for( ; ; )
Is there any way to stop a running loop inside another method or insert
I have a loop going, but there is the possibility for exceptions to be
We have variable $menu with HTML inside (there is no loop, it comes from
We have variable $menu with HTML inside (there is no loop, it comes from
I have a problem, lets say I have a continuous while loop, and inside
I have a list called L inside a loop that must iterate though millions
I have a #pragma omp parallel for loop inside a class method. Each thread
I have a loop that has been parallelized by OpenMP, but due to the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.