Webbrowser Control in VB.Net - disable right click menu
$30-100 USD
完了済み
投稿日: 約20年前
$30-100 USD
完了時にお支払い
Setup: VS 2003 - VB.Net - Framework 1.1
A form has a AxWebBrowser control on it. I wish to disable the right-click pop-up menu of the browser control. There may be multiple instances of the form open at same time. If a link within the page would normally open a new webbrowser it is captured in the following code and a new form is created (instead of Internet Explorer opening).
Private Sub AxWebBrowser1_NewWindow2(ByVal sender As Object, ByVal e As AxSHDocVw.DWebBrowserEvents2_NewWindow2Event) Handles [login to view URL]
Dim frmWB As WebBrowser
frmWB = New WebBrowser(Me, "")
[login to view URL] = True
[login to view URL] = [login to view URL]
[login to view URL] = True
[login to view URL]()
End Sub
I had tried to hook into the MSHTML events and was able to disable right click but it also messed up regular clicks and/or typing in the browser.
I am thinking this should be easy to figure out if you know what you are doing - couple hours work maybe?
I will consider this work successful if you deliver a VS 2003 VB.Net Windows form project that. 1. Has a main form with a button to open the web form with the web browser control on it, which will then navigate to a website on load (lets say [[login to view URL]][1]). I would be able to click any link within that page (please note the "From our Partners" section at bottom of the [login to view URL] page is a good example of launching a new window (which my code above would handle by creating a new instance of the web form)
## Deliverables
1) I will consider this work successful if you deliver a VS 2003 VB.Net Windows form project that. 1. Has a main form with a button to open the web form with the web browser control on it, which will then navigate to a website on load (lets say [login to view URL]). I would be able to click any link within that page (please note the "From our Partners" section at bottom of the [login to view URL] page is a good example of launching a new window (which my code above would handle by creating a new instance of the web form)
2) All deliverables will be considered "work made for hire" under U.S. Copyright law. Buyer will receive exclusive and complete copyrights to all work purchased. (No GPL, GNU, 3rd party components, etc. unless all copyright ramifications are explained AND AGREED TO by the buyer on the site per the coder's Seller Legal Agreement).
## Platform
Setup: VS 2003 - VB.Net - Framework 1.1