Thursday 24 April 2014

Running Flash swf in Windows Application Form - Disable Right Click

I recently ran into a problem that I resolved several years ago.  How to run a Flash swf movie in a windows application and disable the right mouse click menu.

There are many reasons for doing this.  At the time I was writing a game which used the right mouse click with either a forward or backward motion would zoom in or out.

Anyway, that's jumping forward a little too far.

I'm working on another game at the moment, uckers,so I have a beta swf to test with.

Loading the flash movie isn't complex you just need to load the COM Component for Shockwave Flash into the .net windows form project.




  1. Start a new Windows Form Project
  2. Add Shockwave Flash to Toolbox
    1. Right mouse click and select choose items
    2. Select Shockwave Flash and Select add
  3. Place new Component from toolbox to form 
  4. Change Form Settings
    remove the maximise and minimise functions and the fix the window size
  5. Go to code view
  6. Designer Code View
And thats it, right click disabled