473,405 Members | 2,310 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,405 software developers and data experts.

axWebBrowswer Context Menu (VB 2003)

I've got the axWebBrowser in my program and I wish to add a context
menu. When the program runs there is a default context menu, but I
don't want this. I either want to change the existing context menu or
create my own, but I don't know how.

I've looked in the properties for the broswer, but there doesn't seem
an option for context menu :(

I've also tried setting the context menu by typing
"axWebBrowser1.contextmenu = contextmenu1" but this seems to have no
effect.

Can anyone help me?

Steve

Feb 21 '06 #1
3 1344
CMM
Not sure how well it works in VB.NET, but I think (if I remember correctly)
you should be able to do this using the WebCustomizer.dll from Microsoft.
http://msdn.microsoft.com/archive/de...er/default.asp

Or do a search on Google and MSDN for webcustomizer.dll for more details.

--
-C. Moya
www.cmoya.com
"SteMc" <go****@jasmonio.supanet.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
I've got the axWebBrowser in my program and I wish to add a context
menu. When the program runs there is a default context menu, but I
don't want this. I either want to change the existing context menu or
create my own, but I don't know how.

I've looked in the properties for the broswer, but there doesn't seem
an option for context menu :(

I've also tried setting the context menu by typing
"axWebBrowser1.contextmenu = contextmenu1" but this seems to have no
effect.

Can anyone help me?

Steve

Feb 21 '06 #2
In the past you could do this with the wbcustomizer.dll or by subclassing
the control ( i prefered subclassing )

a good alternative in VB.net is a message filter to intercept the messages
send to the control and react with your custom action

see this example http://www.freevbcode.com/ShowCode.Asp?ID=5635 i once wrote

regards

Michel Posseth [MCP]

"SteMc" <go****@jasmonio.supanet.com> schreef in bericht
news:11**********************@g44g2000cwa.googlegr oups.com...
I've got the axWebBrowser in my program and I wish to add a context
menu. When the program runs there is a default context menu, but I
don't want this. I either want to change the existing context menu or
create my own, but I don't know how.

I've looked in the properties for the broswer, but there doesn't seem
an option for context menu :(

I've also tried setting the context menu by typing
"axWebBrowser1.contextmenu = contextmenu1" but this seems to have no
effect.

Can anyone help me?

Steve

Feb 22 '06 #3
Steve

Have a look at the reply to your other post, and in the sample search for
the word 'context'. There is a comment stating how to disable the built-in
context menu. At the same time, you can modify it or add your own.

HTH

Charles
"SteMc" <go****@jasmonio.supanet.com> wrote in message
news:11**********************@g44g2000cwa.googlegr oups.com...
I've got the axWebBrowser in my program and I wish to add a context
menu. When the program runs there is a default context menu, but I
don't want this. I either want to change the existing context menu or
create my own, but I don't know how.

I've looked in the properties for the broswer, but there doesn't seem
an option for context menu :(

I've also tried setting the context menu by typing
"axWebBrowser1.contextmenu = contextmenu1" but this seems to have no
effect.

Can anyone help me?

Steve

Mar 14 '06 #4

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

Similar topics

0
by: Tom Dacon | last post by:
"Open .Net Command Window Here" context menu for Windows Explorer: The reg file described below adds a new menu item to Windows Explorer's context menu when you right-click over a folder (or the...
2
by: Leon | last post by:
Hi! I need to change form's standard context menu code. Eg. I want to order records by my own code. Can I make it, or must I create other context menu and link it to my form?? I'd like to...
1
by: Frank Oquendo | last post by:
My DataGrid has a ContextMenu assigned to it. If I right-click the current cell, I get the standard Windows context menu (Cut, Copy, Paste, etc.). If I right-click anywhere else, I get my context...
1
by: Abhi | last post by:
I've created a class "MRP123MenuItem" derived from inbuilt MenuItem class to give customized look and feel to the user. I've created context menus for different controls using mine...
4
by: Aaron Queenan | last post by:
How can I use the designer to add a context menu to a class which inherits from a control, e.g. treeview, without adding the context menu to a form? For example, to add a context menu with...
8
by: Dennis C. Drumm | last post by:
Is there a way to modify the standard context menu shown when someone right clicks in a windows text box and that would work for all open windows applications? The standard context menu for...
13
by: Steven Smith | last post by:
Just a quick question... I've built a context menu which I want to pop-up when right clicking the form, I've set the Form's context menu property to the name of the menu in question, but it...
1
by: goRide | last post by:
Hi, I'm looking of a way (preferred - a ready class or dll) to customize the context menu. many application has more controls inside the context menu (like textbox, sliders, checkbox, panel...
0
by: Newbie Coder | last post by:
I have added a context menu to a user control with just copy/paste on it. This is set for all areas of my user control, but when compiled, added to a Windows form the context menu doesn't show....
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: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.