axWebBrowswer Context Menu (VB 2003)

  • Thread starter Thread starter SteMc
  • Start date Start date
S

SteMc

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
 
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]
 
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
 
Back
Top