Question In Datagridview's cell when key F2 press then ListView Open/display

prasad kulkarni

Well-known member
Joined
Sep 7, 2009
Messages
62
Programming Experience
1-3
Hi,

When Datagridview cell is Blank & when key F2 press then how to show
ListView in vb.net

if any one know, then reply me soon
 
Presuming your listview is on another form, try something like
VB.NET:
Private Sub DataGridView1_KeyDown(ByVal sender As Object, ByVal e As System.Windows.Forms.KeyEventArgs) _
 Handles DataGridView1.KeyDown
        If e.KeyCode = Keys.F2 Then
            Dim frm2 As New Form2
            frm2.Show()
        End If
End Sub
 
Back
Top