Disabling the right click context menu (revisited)

  • Thread starter Thread starter Robert
  • Start date Start date
R

Robert

I have downloaded the demo from MS. There is this code in the control:

' Enable or disable IE's context menu? This allows the parent host
' to render its own.
Public Property BrowserContextMenu() As Boolean
Get
BrowserContextMenu = enableCtxMenu
End Get
Set(ByVal Value As Boolean)
' Disable it. Note that we'll need to do this for each
' page navigation, as the event sink is specific to an
' instance of MSHTML.
If (True = Value) Then
DisableContextMenu()
Else
EnableContextMenu()
End If
enableCtxMenu = Value
End Set
End Property

What do I set to make this disable the context menu? This is literally the
last thing I need to finish the application.

Robert
 
Hi Robert

I gave you the answer the first time you asked. Have you not tried it?

Charles
 
Charles Law said:
Hi Robert

I gave you the answer the first time you asked. Have you not tried it?

Charles
I am sorry. Ugh! I thought your post was another and have been trying to
implement that one! Let me revisit yours and see if I can use that.

Robert
 
Back
Top