Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Disable Ctrl-Tab?

Status
Not open for further replies.

Jaimekb

Programmer
May 22, 2001
5
US
Pressing Ctrl+Tab causes a problem in my application and I would like to disable it. I tried various ways of using the KeyUp and KeyDown but it doesn't seem to properly capture the combination every time. Does anyone have a suggestion?

Thanks in advance.
 
On your form, set the KeyPreview to True. Try this code to see if it will do what you're wanting.

Private Sub Form_KeyUp(KeyCode As Integer, Shift As Integer)
If KeyCode = 9 And Shift = 2 Then
KeyCode = 0
Shift = 0
End If
End Sub

RKA:)
 
I tried that code and it doesn't seem to be working.

Thanks for the suggestion.
 
Well if I'm not mistaken that code needs the form to have focus. Ie no controls. So it probably won't help, but I could be mistaken (which I usualy am).
Brad,
Free mp3 player,games and more.
 
You may want to read faq222-585 which discusses system keystrokes on Windows NT and 2000.

Chip H.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top