|
-
Sep 17th, 2002, 07:20 AM
#1
Thread Starter
Lively Member
MSFlexGrid
Is there a way of telling where the mouse is over the grid and then selecting the cell
Joolz
-
Sep 17th, 2002, 07:43 AM
#2
I wonder how many charact
You would throw in a Mouse_Move event...
http://msdn.microsoft.com/library/default.asp
and in that subroutine, you would need to check the MouseCol, MouseRow properties
http://msdn.microsoft.com/library/de...properties.asp
As an example, throw 2 Lables and a Msflexgrid on a form (have flexgrid with 10 rows, 10 colums)
VB Code:
Private Sub msflexgrid1_MouseMove(button As Integer, shift As Integer, x As Single, y As Single)
Label1.Caption = MSFlexGrid1.MouseCol
Label2.Caption = MSFlexGrid1.MouseRow
Msflexgrid1.row = msflexgrid1.mouserow
msflexgrid1.col = msflexgrid1.mousecol
End Sub
Last edited by nemaroller; Sep 17th, 2002 at 07:51 AM.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|