Solved

WebBrowser control shortcut keys

Posted on 2001-07-17
5
322 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

751 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