Why does the compact structure of WebBrowser control the loading of pages in opera?

I need to be able to display html files that are stored locally on the device using a WebBrowser control in the form of a window.

I simply point the WebBrowser to the page as follows: ctrlBrowser.Url = new Uri ("file: // \\ My Documents \ test.html");

The pages load perfectly in control, with the exception of the Windows Mobile 6.1 device, which also has an Opera browser. Each time the above code works, the page loads, but loads on the newly launched Opera browser screen. I need to use the WebBrowser control to catch navigation events, etc., but cannot find a way to get the page to load into the control when the opera is installed.

Your thoughts are much appreciated as I am against a brick wall on it.

+4
source share
2 answers

This is a strange side effect of the Opera browser by default (I believe this happens if you install Opera on any WinMo device). The workaround is discussed here .

+3
source

We met this in our program WM 6. This is due to the fact that Opera is the default system browser for the device. It is assumed that the working environment (changing the device registry) provided by @ctacke works correctly, but as an alternative, you can open Opera and use the settings to set it as the default browser. We chose the last aproach, although you could combine them and ask the user to change their settings if the registry is set to Opera by default.

0
source

Source: https://habr.com/ru/post/1285858/


All Articles