Advertisement

03.29.2008 at 11:30AM PDT, ID: 23279712
[x]
Attachment Details

How can I capture key strokes in VB.Net?

Asked by kundersky in Visual Studio .NET 2005, Miscellaneous Programming

Tags: VB.Net 2005 Windows Forms

Dear Experts,

I have a datatable bound to a datagridview in a windows form. I have code in the datagridview's RowEnter event that I want executed only when the up/down arrows are pressed. The AcceptChanges and Merge methods of the bound datatable cause the RowEvent event to fire, and I don't want the code in the event to be executed when those methods are invoked.

Can anybody help me with how I can capture the up/down arrow key strokes? I could use this to determine if the up/down arrows were pressed and only execute my code when they are pressed.

Thank you

Bill Stinocher
bstinocher@tsts.comStart Free Trial
[+][-]03.29.2008 at 11:40AM PDT, ID: 21237638

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zones: Visual Studio .NET 2005, Miscellaneous Programming
Tags: VB.Net 2005 Windows Forms
Sign Up Now!
Solution Provided By: rfdelie
Participating Experts: 1
Solution Grade: A
 
 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628