마우스 썸네일형 리스트형 DataGridView Control에서 오른쪽 마우스 버튼 사용 하기 Private Sub DataGridView_MouseUp(ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Handles DataGridView.MouseUp If e.Button = MouseButtons.Right Then Dim hti As DataGridView.HitTestInfo = sender.HitTest(e.X, e.Y) If hti.Type = DataGridViewHitTestType.Cell Then If Not DataGridView.Rows(hti.RowIndex).Selected Then ' User right clicked a row that is not selected, so throw away.. 더보기 이전 1 다음