Print Page | Close Window

KeyDown Event in Browser

Printed From: Codejock Forums
Category: Codejock Products
Forum Name: Controls
Forum Description: Topics Related to Codejock Controls
URL: http://forum.codejock.com/forum_posts.asp?TID=18368
Printed Date: 05 October 2024 at 8:01pm
Software Version: Web Wiz Forums 12.04 - http://www.webwizforums.com


Topic: KeyDown Event in Browser
Posted By: ProScan
Subject: KeyDown Event in Browser
Date Posted: 13 May 2011 at 5:58am
Hello Codejock team

i have a Form with the Standard Browser Object from shdocvw.dll

in the keydown event from the form i look for the keycode CTRL+N

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)

    If KeyCode = vbKeyN And Shift = 2 Then
        KeyCode = 0                             '<- no Browser Instance
    End If

End Sub

the Form property Keypreview is True
with the shdocvw control the event was fired, when the user pressed ctrl+n
i can cancel the keycode.

i replace this control with the Webbrowser Control from the codejock tools
and start again.... when i pressed ctrl+n the Event is not fired

i works with the version 15.0.2 and vb 6.0

do you have a workaround for this problem ?

Thanks
ProScan




Replies:
Posted By: ProScan
Date Posted: 19 May 2011 at 6:32am
Hello Codejock Team....
 
is a workaround for this problem available ?
 
ProScan 



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.04 - http://www.webwizforums.com
Copyright ©2001-2021 Web Wiz Ltd. - https://www.webwiz.net