Find Code:
All Words
Any of the Words
Exact Phrase
Home
:
Code
:
Forums
:
Submit
:
Mailing List
:
About
:
Contact
Code
All
VB.NET
ASP.NET
C#
VB Classic
ASP Classic
Snippets
Popular
Resources
Submit Code
Forums
Articles
Tips
Links
Books
Contest
Link to us
MSHflex Grid right click row return
Author:
Eddie MacDonald
E-mail:
Click to e-mail author
Submitted:
3/19/2004
Version:
VB6
Compatibility:
VB6
Category:
Controls
Views:
10667
This code snippet demonstrates a question asked by another person on this posted. He wanted to find out what row the user right clicked on an MSHFlex Grid. The code is VERY simple, so simple it may be oblivious to some. You can do it with only a couple lines of code!
Declarations:
Dim MyRow as integer
Code:
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
Home
|
Forums
|
Submit
|
Books
|
Mailing List
|
Advertising
|
About
|
Contact
© 2024 A1VBCode. All rights reserved.
Legal disclaimer & terms of use
Privacy statement