Solved

WebBrowser control shortcut keys

Posted on 2001-07-17
5
325 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

Want Experts Exchange at your fingertips?

With Experts Exchange’s latest app release, you can now experience our most recent features, updates, and the same community interface while on-the-go. Download our latest app release at the Android or Apple stores today!

Question has a verified solution.

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

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
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…
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…
Suggested Courses
Course of the Month6 days, 6 hours left to enroll

627 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