Solved

WebBrowser control shortcut keys

Posted on 2001-07-17
5
316 Views
Last Modified: 2008-01-09
How to prevents webbrowser control shortcut key, for example when i press "Ctrl + F" keys webbrowser displays "Find dialoge box", how to know that the user click on "Ctrl + F" and prevent the "Find dialoge box" and so on.

elzohry
0
Comment
Question by:elzohry
  • 2
  • 2
5 Comments
 
LVL 5

Accepted Solution

by:
KDivad earned 150 total points
ID: 6291623
Simple. Set up a hotkey.

Tell ya what:
Download/Register/Use the hotkey component at http://www.jwcs.net/vbactivex/. If it does what you want, I'll provide the source for creating your own hotkeys. Zip contains info on using the component, it's really quite simple.
0
 
LVL 2

Expert Comment

by:PeteD
ID: 6291947
Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
    If Shift = 2 Then
        Shift = 0
        Debug.Print Shift
    End If
End Sub

Private Sub Form_Load()
    Me.KeyPreview = True
    wb1.Navigate2 "www.lycos.com"
End Sub
0
 
LVL 2

Expert Comment

by:PeteD
ID: 6291950
OK.. forget the debug.print line....
0
 

Author Comment

by:elzohry
ID: 6330630
The control prevent shortcut keys all over the windows even over IE, i want to prevent it in my webbrowser only.
please send to me source code and an example.

thanks
elzohry
0
 
LVL 5

Expert Comment

by:KDivad
ID: 6330792
Note: Don't accept an answer if it isn't what you want!

The code for the hotkey is system-wide only. It can't be modified for only one app.

I'm looking into other methods of monitoring the keyboard or stopping the shortcut. I should be back sometime tomorrow (7/29). If not, then post another message to remind me.
0

Featured Post

Courses: Start Training Online With Pros, Today

Brush up on the basics or master the advanced techniques required to earn essential industry certifications, with Courses. Enroll in a course and start learning today. Training topics range from Android App Dev to the Xen Virtualization Platform.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Vb.net 2008 2 59
Cannot enter table caption text in Word protected document 6 123
Adding to a VBA? 6 70
Using an encrypted  value to decrypt and display contents in vb6 9 51
Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

776 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question