Printable Version of Topic

Click here to view this topic in its original format

UtterAccess Forums _ Visual Basic 6 and Earlier _ Webbrowser Control

Posted by: tykra Jul 31 2019, 07:56 PM

I'm using a web browser control to load PDF files in access' works great! I have a new request from management, they asked if I could disable the context menu / or disable right click on the browser window. I searched for a few hours and never really found any examples of this in Access.

Is there anything out there to do that?

Posted by: June7 Jul 31 2019, 10:01 PM

That right click menu is an attribute of IE, not Access. It's the same menu you get in IE. The WebBrowser control is a window to IE.

So stuck with the menu unless Access can trap the mouse right click with form's MouseDown or MouseUp events - not something I've ever tried.

Posted by: theDBguy Aug 1 2019, 10:26 AM

Hi. You might be able to experiment using JavaScript. Just a thought...