TopRow property of MS Flex Grid control

I have a form in Visual Basic 5 which has two MS Flex Grid controls and a standard vertical scroll bar.  I want to be able to scroll both grids with the same scroll bar.

The problem is that any setting of the FlexGrid control's TopRow property, which would allow the scrolling effect, is ignored.  The code in the VSB's scroll event is as follows.

FLEX.TopRow = VSB.Value

Stepping through this code has proven that this line is being processed but the TopRow property does not change.

Does anyone have a workaround using a different property, or possibly an API call?

skerrypaAsked:
Who is Participating?

[Webinar] Streamline your web hosting managementRegister Today

x
 
MaximkaConnect With a Mentor Commented:
1.Just put it in VSB_Change event instead VSB_Scroll.

2.Put VSB.Max=FLEX.Rows in form_load event but after part that fill Your flexes.

3.Be sure that both of Your Flaxes has Scrolls=flexScrollsBarBoth or flexScrollBarVertical


Hope this will help You.
0
 
skerrypaAuthor Commented:
That will do fine.  I'll just mask the scroll bars that I'm not using.

Thanks very much.
0
All Courses

From novice to tech pro — start learning today.