Click here to Skip to main content
13,152,063 members (36,467 online)
Click here to Skip to main content
Add your own
alternative version


18 bookmarked
Posted 5 Sep 2008

How To Disable FlashPlayer (AxShockwaveFlash) Right-click ContextMenu

, 5 Sep 2008
Rate this:
Please Sign up or sign in to vote.
How to disable FlashPlayer (AxShockwaveFlash) right-click ContextMenu


In FlashPlayer, there is always this ContextMenu which never fits the design of the flash movie.


I started making a FlashGame which has multiple clients and is always up-to-date with all other clients. This is very difficulty to manage with WebRequests and Intervals, so I decided to make my FlashGame in my C# application.

The only problem was that I have a new application but with the old ContextMenu which I hate so much. So I searched for a solution on this site, but I didn't find one. Then I started searching on Google and after some dead links and unmatching code snippets, I found a .NET Visual Basic solution which is easily translated into C# and here it is.

Using the Code

Just download the project and see how it works (if it works since it's my first article).

For all those who only want to know how the code looks like, here is the core (a small core, very small core):

public class IForcePlayer : AxShockwaveFlash
    const int WM_RBUTTONDOWN = 0x0204;

    protected override void WndProc(ref Message m)
        if (m.Msg == WM_RBUTTONDOWN)
            m.Result = IntPtr.Zero;
        base.WndProc(ref m);


  • 5th September, 2008: Initial post


This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


About the Author

Austria Austria
No Biography provided

You may also be interested in...

Comments and Discussions

QuestionThanks only! Pin
emarti25-Dec-11 10:09
memberemarti25-Dec-11 10:09 
GeneralMy vote of 5 Pin
emarti25-Dec-11 10:07
memberemarti25-Dec-11 10:07 
GeneralMy problem was solved Pin
BehrOOz-ice21-Aug-10 6:30
memberBehrOOz-ice21-Aug-10 6:30 
Generali found this !! Pin
BehrOOz-ice20-Aug-10 20:15
memberBehrOOz-ice20-Aug-10 20:15 
Generalin VB .net Pin
BehrOOz-ice20-Aug-10 19:45
memberBehrOOz-ice20-Aug-10 19:45 
AnswerRe: in VB .net Pin
thatraja28-Jan-12 5:35
mvpthatraja28-Jan-12 5:35 
Questioni have error on running this [modified] Pin
hgh6625-Jul-10 9:59
memberhgh6625-Jul-10 9:59 
GeneralSolution !? [modified] Pin
IncureForce13-Sep-09 12:34
memberIncureForce13-Sep-09 12:34 
GeneralNot working on VS 2005 Pin
Lorenz C18-Aug-09 4:29
memberLorenz C18-Aug-09 4:29 
GeneralNice! Pin
Michael Dolittle30-Jan-09 21:03
memberMichael Dolittle30-Jan-09 21:03 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web04 | 2.8.170924.2 | Last Updated 5 Sep 2008
Article Copyright 2008 by IncureForce
Everything else Copyright © CodeProject, 1999-2017
Layout: fixed | fluid