Try using the KeyDown event:
Example:
private void textBox1_KeyDown(object sender,
System.Windows.Forms.KeyEventArgs e)
{
if (e.KeyCode == Keys.Insert && e.Modifiers == Keys.Shift)
MessageBox.Show("Shift Insert Captured");
}
Cheers,
Christian T. [MSFT]
Visual Studio Update Team
- Please do not reply to this email directly. This email is for newsgroup
purposes only.
=========================================================================
This posting is provided "AS IS" with no warranties, and confers no
rights. Use of included script samples are subject to the terms specified
at
http://www.microsoft.com/info/cpyright.htm
Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which
they originated.
=========================================================================
--------------------