how to handle keypress on webbrowser control

Oct 20 2009 10:51 AM

Hi:
We have an application that use the webbrowse control, and we need to avoid the use of refresh option by press F5 key
I know that to handle a key pressed in C#, I need to use any of the events keypress, keydown or keyup and do e.handle=true;
the problem is that the webbrowser control does not have any of these events, it only have the previewkeypress event, but in this event, we can not do a keyhandle.
In C# we have any option to cancle any specifi key for all the application live ? any other idea will be value.
Thanks
Ernesto Aides

Answers (1)