Results 1 to 2 of 2

Thread: MSFlexGrid

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Sep 2002
    Posts
    120

    Unhappy MSFlexGrid

    Is there a way of telling where the mouse is over the grid and then selecting the cell


    Joolz

  2. #2
    I wonder how many charact
    Join Date
    Feb 2001
    Location
    Savage, MN, USA
    Posts
    3,704
    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:
    1. Private Sub msflexgrid1_MouseMove(button As Integer, shift As Integer, x As Single, y As Single)
    2. Label1.Caption = MSFlexGrid1.MouseCol
    3. Label2.Caption = MSFlexGrid1.MouseRow
    4. Msflexgrid1.row = msflexgrid1.mouserow
    5. msflexgrid1.col = msflexgrid1.mousecol
    6. 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
  •  



Click Here to Expand Forum to Full Width