Solved

Traping 'Ctrl + Tab"

Posted on 2002-06-08
3
219 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

PeopleSoft Has Never Been Easier

PeopleSoft Adoption Made Smooth & Simple!

On-The-Job Training Is made Intuitive & Easy With WalkMe's On-Screen Guidance Tool.  Claim Your Free WalkMe Account Now

Question has a verified solution.

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

Introduction While answering a recent question about filtering a custom class collection, I realized that this could be accomplished with very little code by using the ScriptControl (SC) library.  This article will introduce you to the SC library a…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
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…

726 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