?
Solved

Traping 'Ctrl + Tab"

Posted on 2002-06-08
3
Medium Priority
?
220 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

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

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

I’ve seen a number of people looking for examples of how to access web services from VB6.  I’ve been using a test harness I built in VB6 (using many resources I found online) that I use for small projects to work out how to communicate with web serv…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
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…
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 Month12 days, 12 hours left to enroll

777 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