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

Related posts:

  1. How to Move image with the mouse in a form
  2. How to Execute an ad hoc query using ADO and display the results in a grid
  3. How to implement Drag and Drop in TreeView Control
  4. How to show a popup menu
  5. How to enable the user to drag and drop items between two list boxes
  6. How to confirm the user before exiting your application
  7. How to draw a Dotted Selection Box
  8. How to enter text in MSFlex Grid control without using text box.
  9. How to select items in ListBox with right mouse button
  10. How to disable beep when user presses the Enter key in TextBox

Filed under: Controls Leave a comment
Comments (0) Trackbacks (0)

No comments yet.


Leave a comment


No trackbacks yet.