Jump to content



Photo

How do you stop a WebBrowser object in WPF?


  • Please log in to reply
1 reply to this topic

#1 Complete

Complete

    Neowinian

  • Joined: 07-January 06

Posted 02 December 2012 - 14:55

How do you stop a WebBrowser object in WPF?
The stop method is not an option becasue that is only available in windows forms.
http://msdn.microsof...owser.stop.aspx
And Dispose does not seem to be the answer either.


#2 Aethec

Aethec

    Neowinian Senior

  • Joined: 02-May 10

Posted 04 December 2012 - 14:50

Look at the comments in the System.Windows.Controls.WebBrowser MSDN page - there are instructions to get the native browser interface (IWebBrowser2), which can stop the page. It's not easy though :/