I\'m trying to capture the Tab key in a Windows Forms application and do a custom action when it is pressed.
I have a Form with several listViews and button
This is the C# code similar to the VB code given in the answer above...
protected override bool ProcessCmdKey(ref Message msg, Keys keyData) { if (keyData == Keys.Tab) { //your code } return base.ProcessCmdKey(ref msg, keyData); }
Hope this helps...