i want to retrive data from database in datagrid while pressing the tab key. Help me to choose the event for this in VB.net 2010

Recommended Answers

Put this on your form code :

    Protected Overrides Function ProcessTabKey(ByVal forward As Boolean) As Boolean
        MyBase.ProcessTabKey(forward)
        MsgBox("Tab key") ' Change this with your retrieving code or function name
    End Function
Jump to Post

All 3 Replies

cell mouse down- Occurs when the user presses a mouse button while the mouse pointer is within the boundaries of a cell.

Put this on your form code :

    Protected Overrides Function ProcessTabKey(ByVal forward As Boolean) As Boolean
        MyBase.ProcessTabKey(forward)
        MsgBox("Tab key") ' Change this with your retrieving code or function name
    End Function

where you want to perform this action , i mean where you want to press the tab key to populate your grid from your database.

Regards

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.