LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Disabling WebBrowser Right Click Menu

Solved!
Go to solution

Hi All

 

I am using a WebBrowser control to display a Test Report in XML format.  The problem I am having is that a right click on the WebBrowser displays a shortcut menu.  Does anyone know how to remove the right click menu option?  Alternatively does anyone know of a method of displaying XML files using an indicator that doesn't include a right click menu?

 

I have attempted to filter out right clicks on the WebBrowser as shown, but this seems to need the 500ms (????) delay to work on my LV dev machine and is not reliable when my application is built into a EXE and deployed to a LV Run Time system.

 

Discard.png

 

Regards


Steve

0 Kudos
Message 1 of 4
(3,636 Views)
Solution
Accepted by topic author SercoSteveB

Hi SercoSteveB,

 

Since LabVIEW WebBrowser control uses the Internet Explorer. The easiest way to disable the right-click context

menu is to actually disable it from the Internet Explorer itself. I believe that your default browser is not Internet Explorer,

so it is safe to disable a right-click there.

 

Here is the manual which explains how to do it:

 

Enable or disable right-click context menus in Windows Explorer

http://www.thewindowsclub.com/enable-disable-right-click-context-menus-windows-explorer

 

I hope it helps!

 

Kind Regards,

Message 2 of 4
(3,603 Views)

Hi Max

 

Thanks I shall give that a go and report back.  There are a bunch of other options on TheWindowsClub.com, plenty of things to try.

 

Thanks again

 

Steve

0 Kudos
Message 3 of 4
(3,588 Views)

Hi Max

 

Yep that was it, nice one, Kudos to you.  I found methods for removing the context menu completely and also for removing the Print... menu item.

 

Thanks again

 

Steve

0 Kudos
Message 4 of 4
(3,532 Views)