Is there a way of telling where the mouse is over the grid and then selecting the cell
Joolz
Printable View
Is there a way of telling where the mouse is over the grid and then selecting the cell
Joolz
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