Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

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

Posted on 2000-04-12
4
Medium Priority
?
211 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
4 Comments
 
LVL 28

Expert Comment

by:AzraSound
ID: 2710453
0
 

Accepted Solution

by:
negeon earned 200 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

This article describes how to use a set of graphical playing cards to create a Draw Poker game in Excel or VB6.
There are many other benefits to creating an inbound marketing strategy. Let’s take a look at five of the biggest and how they'll affect your business.
Learn how to set-up PayPal payment integration in your Wufoo form. Allow your users to remit payment through PayPal upon completion of your online form. This is helpful for collecting membership payments, customer payments, donations, and more.
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Suggested Courses

636 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