CodeItBetter Programming Another VB Programming Blog

How to find out what row the user right clicked on an MSHFlex Grid

Posted on January 5, 2009
1
2
3
4
5
6
7
8
9
10
11
'Controls - How to find out what row the user right clicked on an MSHFlex Grid
Option Explicit
 
Dim MyRow As Integer
 
Private Sub MSHFlexGrid1_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single)
    If Button = 2 Then
        MyRow = MSHFlexGrid1.MouseRow
        MsgBox "You right clicked row #" & MyRow
    End If
End Sub
Filed under: Controls Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


 

No trackbacks yet.