Home All Groups Group Topic Archive Search About

MSFlexGrid : To catch Scroll Event

Author
25 May 2005 11:29 AM
Emmanuel DURAND
Hi,
How can I get the (vertical) scroll event for the MSFlexGrid control?
Thx

Author
25 May 2005 11:44 AM
Jan Hyde
"Emmanuel DURAND" <edurand<NOSPAM>@wanadoo.fr>'s wild
thoughts were released on Wed, 25 May 2005 13:29:09 +0200
bearing the following fruit:

>Hi,
>How can I get the (vertical) scroll event for the MSFlexGrid control?
>Thx
>

Could I ask why? There may be another way to achieve your
goal?



Jan Hyde (VB MVP)

--
Condescending: A prisoner escaping down the wall using a rope. (Archives)

[Abolish the TV Licence - http://www.tvlicensing.biz/]
Author
25 May 2005 2:11 PM
John Cleveland
"Emmanuel DURAND @wanadoo.fr>" <edurand<NOSPAM> wrote in message
news:erYB$yRYFHA.3184@TK2MSFTNGP15.phx.gbl...
> Hi,
> How can I get the (vertical) scroll event for the MSFlexGrid control?
> Thx
>

Not sure what you mean but if you are attempting to scroll the msflexgrid
programmatically to insure the selected row is in view, you can use the
TopRow property.

You can also determine if a row is currently in view in the grid using the
RowIsVisible property.  By in view, I mean the row is not scrolled out of
view.  The following code first tests to see if the currently selected row
is in view and if it not, it scrolls the grid so it is in view.

With MSFlexGrid1
   If .RowIsVisible(.Row) = False then .TopRow = .Row
End With

Hope this is what you need.
Author
25 May 2005 2:57 PM
Jeff Johnson [MVP: VB]
"Emmanuel DURAND @wanadoo.fr>" <edurand<NOSPAM> wrote in message
news:erYB$yRYFHA.3184@TK2MSFTNGP15.phx.gbl...

> How can I get the (vertical) scroll event for the MSFlexGrid control?

The Scroll event doesn't do it for you? Always worked for me....