I have researched a lot about disabling the right click in web browser control for C# and VB.NET 2005 lot but i have found a simple solution.
It has a property called IsWebBrowserContextMenuEnabled just set it to False. It will disable the right click in web browser control.
Isn't that easy. Stay tuned for more!!
It has a property called IsWebBrowserContextMenuEnabled just set it to False. It will disable the right click in web browser control.
Isn't that easy. Stay tuned for more!!
Thanks for the Info M8, you saved me a heap of time
ReplyDeleteCheers
Acestu
Wow, all the other ways are so complicated. What a great tip.
ReplyDeletetanx
ReplyDeletehow disable the refresh (f5) ??
it's so easy :D
ReplyDeleteThanks :x
Too bad this doesn't apply to objects within the control (specifically flash) :(
ReplyDeleteThanks for the post, saved my butt. Just in case anyone wants to disable the keyboard shortcuts, that can be achieved using the property WebBrowserShortcutsEnabled
ReplyDeleteIs it possible to block Shift+LeftClick? Thanks
ReplyDeleteTo disable Shift+Left click use the following:
ReplyDeleteprivate void webBrowser1_NewWindow(object sender, CancelEventArgs e){ e.Cancel = true;}
Hi, Is there any way to disable right click in WPF applications? I researched and couldnt find any solution, except that we need to host winforms and then use the property. Please help.
ReplyDelete