How to use VB.net to simulate the "delete" function of the Keyboard?
I have use the OleDbadoptor function in the Toolbox of the Visual Studio 2008 to build a connection from Datagrid to Ms Access, the database fields can be delete by press the delete button of the keyboard, hence I would like to use a button on the form to simulate the delete function of the keyboard, does anyone can tell me how to do it?
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.
Hirendra SisodiyaRank #256 · 9.8K pointsPosted Nov 25, 2010, 10:21 PM EST
try this
System.Windows.Forms.SendKeys.Send("{DELETE}")
thanks