WebBrowser Control - Requires Navigation Error Handling

I am writing a C # application on Windows CE 5.0 with .NET Framework 3.5 that uses the WebBrowser control. This is almost what I want, except that it throws a global exception when it fails. Navigate (...) as opposed to being excluded from the Navigate call.

I found this article:

http://msdn.microsoft.com/en-us/library/system.windows.forms.webbrowser.createsink.aspx

While this compiles for a Windows application, there are a few things missing when I try to compile them for WinCE. Those who:

  • AxHost
  • StandardOleMarshalObject
  • Everything that starts with permission *
  • ... and a few more that I can't remember at the moment.

I can continue to write the application and deal with global exceptions, but it would be much cleaner if I could handle navigation errors correctly. Any advice would be appreciated.

+2


source to share


1 answer


which thread is the exception from? if you could find / access this stream you could theoretically deal with its exceptions.



0


source







All Articles