Is there any way to change the Context Menu of a Web browser using Wpf (C#)

前端 未结 4 744
粉色の甜心
粉色の甜心 2021-02-10 00:32

I would to change the menuitems in the default context menu provided in the Web Browser Control. I have already tried: webbrowser.contextmenu = mycontextmenu. Nothing changed. I

4条回答
  •  清酒与你
    2021-02-10 01:05

    Answer - YES. There is a setting in the webbrowser control for: .IsWebBrowserContextMenuEnabled = false;

    Setting this to false disables the IE contextmenu, allowing whichever one you set to rule the roots. Simples..

提交回复
热议问题