Solved

Traping 'Ctrl + Tab"

Posted on 2002-06-08
3
218 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
[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
3 Comments
 
LVL 3

Expert Comment

by:DrMaltz
ID: 7064260
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
ID: 7873417
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
ID: 7924879
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

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

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…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
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…
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…

733 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