|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
MSFlexGrid : To catch Scroll EventHi,
How can I get the (vertical) scroll event for the MSFlexGrid control? Thx "Emmanuel DURAND" <edurand<NOSPAM>@wanadoo.fr>'s wild thoughts were released on Wed, 25 May 2005 13:29:09 +0200bearing the following fruit: >Hi, Could I ask why? There may be another way to achieve your>How can I get the (vertical) scroll event for the MSFlexGrid control? >Thx > goal? Jan Hyde (VB MVP) -- Condescending: A prisoner escaping down the wall using a rope. (Archives) [Abolish the TV Licence - http://www.tvlicensing.biz/] "Emmanuel DURAND @wanadoo.fr>" <edurand<NOSPAM> wrote in message Not sure what you mean but if you are attempting to scroll the msflexgrid news:erYB$yRYFHA.3184@TK2MSFTNGP15.phx.gbl... > Hi, > How can I get the (vertical) scroll event for the MSFlexGrid control? > Thx > 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. "Emmanuel DURAND @wanadoo.fr>" <edurand<NOSPAM> wrote in message The Scroll event doesn't do it for you? Always worked for me....news:erYB$yRYFHA.3184@TK2MSFTNGP15.phx.gbl... > How can I get the (vertical) scroll event for the MSFlexGrid control? |
|||||||||||||||||||||||