Solved

Intercepting keystrokes on an MDI form

Posted on 1998-12-09
2
237 Views
Last Modified: 2012-06-21
Do you know if there is any way that I can intercept keystrokes on an MDI form?
I can do this with a 'standard' from by setting the KeyPreview Property to True and trapping the keystroke with the KeyPress Event.

Thanks in advance,
David.
0
Comment
Question by:dadzie
  • 2
2 Comments
 
LVL 3

Accepted Solution

by:
Foyal earned 100 total points
ID: 1449124
dadzie-

Private Sub MDIForm_Load
    Dim NewForm As New Form1
    NewForm.Show
End Sub

In Form1 set .KeyPreview to True and write your key trapping code. This way the MDIForm.ActiveForm should get the focus.
*maybe*

0
 
LVL 3

Expert Comment

by:Foyal
ID: 380
I hope you would take this "D" grade and stick it right up your ass.
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

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…
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…
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…
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…

708 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

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now