Solved

Traping 'Ctrl + Tab"

Posted on 2002-06-08
3
215 Views
Last Modified: 2012-05-04
Hi all,
  I have an MDI form and Many child forms. From One child form I need to call another child form. as...
  Mdi  - parent form
  Form1 - Child form
  Form2 - child form
  Form3 - Child form


On MDi form, Form1 is Loaded, From Form1 i am calling Form2. I need to keep the Form1 one at the back of form2. When I press 'Ctrl+ Tab" , the Form1 comes front. I do not want the form1 to come to the front when I press 'Ctrl +Tab' . Can anybody give me the solution.

With Thanks
FAthima
0
Comment
Question by:fathimasulthan
3 Comments
 
LVL 3

Expert Comment

by:DrMaltz
Comment Utility
The solution to this problem is trap the accelerator keys in the KeyDown event of those control and process them yourself.

Private Sub Form_KeyDown(KeyCode As Integer, Shift As Integer)
   
If KeyCode = 17 Then 'Ctrl+Tab was pressed..

    MsgBox "Whassup"
    End If
End Sub

Very simple logic, but you get to control what happens to the form that has focus when the Ctrl+Tab key is pressed.

Good Luck,

DrMaltz.


0
 
LVL 49

Expert Comment

by:DanRollins
Comment Utility
Hi fathimasulthan,
It appears that you have forgotten this question. I will ask Community Support to close it unless you finalize it within 7 days. I will ask a Community Support Moderator to:

    Accept DrMaltz's comment(s) as an answer.

fathimasulthan, if you think your question was not answered at all or if you need help, just post a new comment here; Community Support will help you.  DO NOT accept this comment as an answer.

EXPERTS: If you disagree with that recommendation, please post an explanatory comment.
==========
DanRollins -- EE database cleanup volunteer
0
 

Accepted Solution

by:
SpideyMod earned 0 total points
Comment Utility
PAQ'd and points NOT refunded (The solution provided only traps the Ctrl Key, not the Ctrl+Tab as presented)

SpideyMod
Community Support Moderator @Experts Exchange
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

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…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
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…

744 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

12 Experts available now in Live!

Get 1:1 Help Now