How can I get the WebBrowser control to show modern contents?

后端 未结 4 1614
忘掉有多难
忘掉有多难 2020-11-22 01:28

I\'ve created a Winforms app that uses a WebBrowser control; I dynamically assign its Uri. It worked fine for awhile, but now I\'m getting this msg:

You seem to

4条回答
  •  北恋
    北恋 (楼主)
    2020-11-22 01:39

    In my case for embedded custom protocol on an application, I will allow only to browse pages served by the application, and no content from the outside, so I wanted to skip saving to the Windows Registry. When I tested after following Reza Aghaei answer and found that you can change the compatibility mode from within the content page. This will skip the need to configure a registry key, but you will have to add it to every page.

    For changing the compatibility mode of a page, you must add a meta tag for it to be applied by the rendering engine:

    
        
            
        
        
        ...
        
    
    

提交回复
热议问题