Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable right click 1

Status
Not open for further replies.

dwhitlow

MIS
Mar 1, 2000
40
US
I am creating a custom front-end for IE and need to disable right-click for a Flash presentation. This webpage is internal to our LAN, and if they right-click on the Flash presentation, they can go to About Flash... and that opens a new instance of IE, but gives an error because they cannot get out to the internet (very bad). Disabling right-click with IDocHostUIHandler interface through WBCustomizer.dll only disables it for the web browser window and not the Flash presentation. Any ideas (PLEASE, this is killin me)?
 
Sorry I can't answer you're question, but I was wondering if you could explain to me how to disable right-click with IDocHostUIHandler interface through WBCustomizer.dll. I'm using the webbrowser control and trying to keep people from using the right click to do a "Save Target As...".

Any help is appreciated.
 
I am also trying to find a way to disable the ability to right-click on a link and do a Save Target As...

Does anyone know how?

:-D

 
Try running the flash presentation through an activeX controller, then inserting it in the DHTML page. You can then put the following code withing your ActiveX main form;

Private Sub Form_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 2 then
MsgBox("Hey, No right clicking!")
Button = -1
End If
End Sub

Hope that helps, again I'm no expert :p

Rob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top