Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8724591
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T07:51:48+00:00 2026-06-13T07:51:48+00:00

I am using WinForms, i have added a WebBrowser control and would like to

  • 0

I am using WinForms, i have added a WebBrowser control and would like to able to intercept a context menu firing event for the IE browser since the browser control is an instance of IE.

I mean, i want to intercept the right click menu item click for the browser it self, i said to my self since it’s an IE instance and it’s inside my application, there got to be a way to do it.

I tried to look at the events of the browser control, but nothing there is nothing that would help me.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T07:51:49+00:00Added an answer on June 13, 2026 at 7:51 am

    Here is an example of canceling WebBrowser context menu. This will help you move on:

    // wb = WebBrowser control instance name
    // attach to the DocumentCompleted event
    wb.DocumentCompleted += new WebBrowserDocumentCompletedEventHandler(wb_DocumentCompleted);
    
    void wb_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
    {
        // when the document loading is completed, attach to the document context showing event
        wb.Document.ContextMenuShowing += new HtmlElementEventHandler(Document_ContextMenuShowing);
    }
    
    void Document_ContextMenuShowing(object sender, HtmlElementEventArgs e)
    {
        // cancel showing context menu
        e.ReturnValue = false;
        // take a look at the 'e' parameter for everything else, you can get various information out of it
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using winforms in vs2008. I have a DataGridView and I would like to detect
I am using Telerik WinForms RadGridView Control, I have set up Excel-like filtering, everything
I have a .net winforms ListBox and I've added items to it using .Add().
I have a BindingSource that I'm using in winforms data binding and I'd like
I'm using c#2.0 and WinForms. I have a datagridview control, unbound, loading small amounts
I would like to have optimized version of my WinForms C# based application for
I have a WinForms application built using Visual Studio 2008. I added a Setup
I am using VB.Net WinForms. I would like to call the Adobe Reader 9
(I'm working in winforms using c#) I have a Listbox ,with some items added
We are building a .NET application using WinForms (3.5). I have added a new

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.