By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
459,626 Members | 1,862 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 459,626 IT Pros & Developers. It's quick & easy.

Disabling the right click context menu (revisited)

P: n/a
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
Nov 20 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
Hi Robert

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

Charles
Robert wrote:
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

Nov 20 '05 #2

P: n/a

"Charles Law" <bl***@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
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
Nov 20 '05 #3

P: n/a

"Charles Law" <bl***@nowhere.com> wrote in message
news:%2****************@TK2MSFTNGP11.phx.gbl...
<snip>

Dude it worked! Thanks a bunch!
Nov 20 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.