El codigo esta mal me envia error al momento de declarar la nueva variable:
hti = DataGridView.HitTest(pt)
desde ahi inicia todo el error.
haber si tratan de solucionarlo, porque el truco esta interesante.Gracias
Gerardo dice:
Private Sub DgUrls_MouseUp(ByVal sender As System.Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles DgUrls.MouseUp
Dim pt As System.Drawing.Point
pt = New Point(e.X, e.Y)
Dim hti As DataGridView.HitTestInfo
hti = DgUrls.HitTest(e.X, e.Y)
If hti.Type = DataGrid.HitTestType.Cell Then
DgUrls.CurrentCell = DgUrls.Rows(hti.RowIndex).Cells(hti.ColumnIndex)
DgUrls.Rows(hti.RowIndex).Selected = True
End If
End Sub
Comentario publicado 19/08/2010 21:48:00