Disable WebBrowser Control's Accelerator Keys (VB.NET)

Category:
C#, VB.NET, ASP.NET
Type:
Snippets
Difficulty:
Intermediate
Author:
m.posseth@work

Version Compatibility: Visual Basic.NET

More information:
Disables context menu , ctrl + P , Backspace with history -1 but stil allows input clearing :-) , etc etc etc capable of clearing all accelerator keys (like using wbcustomizer.dll, or subclassing the webbrowser control in VB6)

This is a very simple VB.NET implementation. I looked for something on the NET that could do something like this code does but I couldn`t find it anywher so i decided to do some pioneering ...

This code is especially usefull for those peolpe who like HTML GUIS in there applications ( like me :-) for an example of such a GUI look at http://www.toolbase.nl/screenshots.aspx

As usual with my shared code this code is public domain it is a gift from me to you, don`t bother to name me in any way although it would be apreciated if you did.

Coded By : M. Posseth (MCP)

Instructions: Copy the declarations and code below and paste directly into your VB project.

Declarations:

Code: