Welcome Guest! To access all forums & features, please register an account or sign-in. → Why register?



How do you stop a WebBrowser object in WPF?


1 reply to this topic - - - - -

#1 Complete

    Neowinian

  • 83 posts
  • 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

    Neowinian Senior

  • 2,214 posts
  • 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 :/