Multiple Click Error in datagridview in Vb.net WinForm
If single or double clicked, there is no error But if continuous multiple clicked then that error
However, No code on click event But the following code on the double click event:
Private Sub dgvDossierView_CellDoubleClick(ByVal sender As Object, ByVal e As System.Windows.Forms.DataGridViewCellEventArgs) Handles dgvDossierView.CellDoubleClick
If e.ColumnIndex = -1 Or e.RowIndex = -1 Then Exit Sub
frmClientDossiersView.Close()
If dgvDossierView.CurrentCell.ColumnIndex = 0 Then
ClientDossier = dgvDossierView.Item(0, dgvDossierView.CurrentCell.RowIndex).Value.ToString
frmClientDossiersView.txtReln.ReadOnly = True
frmClientDossiersView.btnSearchRelation.Enabled = False
If frmClientDossiersView Is Nothing OrElse frmClientDossiersView.IsDisposed Then
frmClientDossiersView.Show()
Else
frmClientDossiersView.BringToFront()
frmClientDossiersView.Show()
End If
End If
End Sub