Skip to content

How to use VB.net to simulate the "delete" function of the Keyboard?

nan

Asked Oct 4, 2008, 8:57 AM EDT1 answer
Share
LinkedInX
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 Sisodiya
    0
    hello Nan
     try this

    System.Windows.Forms.SendKeys.Send("{DELETE}")



    thanks
    0