Search code examples
c#navigationbrowsernavigateurl

How to cancel or dispose current navigation at WebBrowser element


I am developing a C#, .NET Framework 4.0 application. It visits some pages with an order. Sometimes I have to move to the next page without waiting for the previous one to finish the job. How can I cancel the previous navigation process of the WebBrowser element?

WebBrowser element uses Internet Explorer. Thank you.

This is how I navigate

webBrowser1.Navigate("http://www.mywebsite.com/");

Solution

  • WebBrowser.Stop Method