Solved

how to disable the pop up menu in WebBrowser control??

Posted on 2000-04-12
4
187 Views
Last Modified: 2013-11-28
I am using the WebBrowser control in my program written in VB6.  Is there any way to disable the pop up menu in the WebBrowser control?(i.e do not display the pop up menu when I right click inside the control).
0
Comment
Question by:aimui
  • 2
4 Comments
 
LVL 28

Expert Comment

by:AzraSound
ID: 2710453
0
 

Accepted Solution

by:
negeon earned 50 total points
ID: 2710528
You can reference Microsoft HTML Object Library(MSHTML.tlb).We suppose your WebbrowseControl named "WB1".
Option Explicit
Private WithEvents oDocument As HTMLDocument
Private Sub WB1_DownloadComplete()
Set oDocument = WB1.Document
End Sub
Private Function oDocument_oncontextmenu() As Boolean
'Notice you can do what you want to do,you can simply place a "'" or "REM" or you own popup menu,do what you like,enjoy it.
End Function

0
 

Author Comment

by:aimui
ID: 2711133
Thanks.
Can I just left the function oDocument_oncontextmenu() empty If I don't want to display the menu?
Why the menu still been displayed in a dynamic html page contains three frames?
0
 

Author Comment

by:aimui
ID: 2711152
Thanks.
Can I just left the function oDocument_oncontextmenu() empty If I don't want to display the menu?
Why the menu still been displayed in a dynamic html page contains three frames?
0

Featured Post

Control application downtime with dependency maps

Visualize the interdependencies between application components better with Applications Manager's automated application discovery and dependency mapping feature. Resolve performance issues faster by quickly isolating problematic components.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Before we dive into the marketing strategies involved with creating an effective homepage, it’s crucial that EE members know what a homepage is. In essence, a homepage is the introductory, or default page, of a website that typically highlights the …
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Learn how to set-up custom confirmation messages to users who complete your Wufoo form. Include inputs from fields in your form, webpage redirects, and more with Wufoo’s confirmation options.

910 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

24 Experts available now in Live!

Get 1:1 Help Now