I'm using a WebBrowser control in .NET CF 3.5 for a Windows CE device application, and for security reasons need to disable the Context Menu. I've tried a variety of things, none of which seem to work for mobile devices with .NET CF 3.5:
I've tried placing a pictureBox over the WebBrowser, and setting it to be transparent. Unfortunately, the transparency doesn't work and this ends up being a white box over my browser.
I've tried implementing a new custom transparent control to place over the web browser, similar to this.
I've tried editing the OnContextMenu element in the html, no luck.
I've tried overriding the CreateParams to make a transparent PictureBox over the browser, noted as one of the solutions here.
There seems to be many solutions for this online, but none of them seem to work for windows CE with .NET CF 3.5. I believe this is because the WebBrowser has a much simpler implementation than the full .NET 3.5. So my question is thus: is there any way to disable the context menu for the WebBrowser control?