473,387 Members | 1,882 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

Disable AxWebBrowser ContextMenu?

Hello,

In my application, I display help-content (html-documents) in a AxWebBrowser.

The AxWebbrowser contains by default a contextmenu (well known from IE). But
i don't want the user to be able to select one of the Options this
ContextMenu gives.

I absolutely want to disable this ContextMenu! But I've got no idea how to
do this!?!

Regards
Alexander
Nov 16 '05 #1
2 4138
You will need to implement the IDocHostUIHandler interface in your app,
check out this article on CodeProject
http://www.thecodeproject.com/csharp/advhost.asp

--
Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph

"Alexander Wehrli" <Al*************@discussions.microsoft.com> wrote in
message news:92**********************************@microsof t.com...
Hello,

In my application, I display help-content (html-documents) in a AxWebBrowser.
The AxWebbrowser contains by default a contextmenu (well known from IE). But i don't want the user to be able to select one of the Options this
ContextMenu gives.

I absolutely want to disable this ContextMenu! But I've got no idea how to
do this!?!

Regards
Alexander

Nov 16 '05 #2
Cool, works perfectly =D thanks a lot

Regards
Alexander

"Sijin Joseph" wrote:
You will need to implement the IDocHostUIHandler interface in your app,
check out this article on CodeProject
http://www.thecodeproject.com/csharp/advhost.asp

--
Sijin Joseph
http://www.indiangeek.net
http://weblogs.asp.net/sjoseph

"Alexander Wehrli" <Al*************@discussions.microsoft.com> wrote in
message news:92**********************************@microsof t.com...
Hello,

In my application, I display help-content (html-documents) in a

AxWebBrowser.

The AxWebbrowser contains by default a contextmenu (well known from IE).

But
i don't want the user to be able to select one of the Options this
ContextMenu gives.

I absolutely want to disable this ContextMenu! But I've got no idea how to
do this!?!

Regards
Alexander


Nov 16 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
by: yaktipper | last post by:
This explains how to disable the view source / right-click menu in Netscape 4, Netscape 6 and Internet Explorer (IE). <script language="JavaScript"> //This code is the beginning of the right...
29
by: lori3laz | last post by:
How do you disable the right click>view source option on web pages so people can't view your coding and copy it? What's the html I need to include in my website to utilize this feature? Thank...
3
by: Simon CJC | last post by:
Hello I use AxSHDocVw.AxWebBrowser in a windows application. But sometimes the url I browsed in AxSHDocVw.AxWebBrowser contains error caused by javascript. Can I prevent javascript from running in...
2
by: Ryan Joseph So | last post by:
Is it possible to disable the paste contextmenu of a control without creating a new contextmenu to handle this, so i wont be able use to paste on that control. Ryan. *** Sent via...
3
by: Ajai Kumar .R | last post by:
Hai all, I'm getting javascript errors/alert windows on AxWebBrowser. Does any body know how to disable these popups. Thanks in advance. Ajai Kumar .R
1
by: Rulin Hong | last post by:
Menu "Paste" in textbox control's built-in contextmenu will be automaticaly enabled while having text in clipboard. I want to disable the menu when text in clipboard didn't meet my format. I...
2
by: | last post by:
Hi all, I would like to know if there are anyways to disable javascript, activeX and all scripting on AxWebBrowser. I have a program that include the AxWebBrowser and load internet pages, but...
8
by: FAQ server | last post by:
----------------------------------------------------------------------- FAQ Topic - How do I disable the right mouse button? -----------------------------------------------------------------------...
5
by: neehakale | last post by:
language using: C#. platform for program: WINDOWS FORM I wnt to disable the right click for text boxes.And also want to diable the context menu. I have already disable the Minimize and...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.