1
Answer

how to handle keypress on webbrowser control

Ask a question
Ernesto Aides

Ernesto Aides

14y
10.3k
1

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)