How to provide KeyPress event to WebBrowser control?
        Posted  
        
            by Pritorian
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Pritorian
        
        
        
        Published on 2010-03-19T16:10:24Z
        Indexed on 
            2010/03/19
            16:51 UTC
        
        
        Read the original article
        Hit count: 392
        
Hi all, i really need to catch "ESC" key press while focus is on WebBrowser control. I tried something like this:
(webControl as Control).KeyPress += new KeyPressEventHandler(MyKeyPressEventHandler); 
But it doesnt work. The method is not called. I tried some methods, described here, but dont get any result ( Help, please.
© Stack Overflow or respective owner