Solved

TopRow property of MS Flex Grid control

Posted on 2000-04-18
2
310 Views
Last Modified: 2008-03-17
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?

0
Comment
Question by:skerrypa
2 Comments
 
LVL 1

Accepted Solution

by:
Maximka earned 50 total points
ID: 2727209
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
 

Author Comment

by:skerrypa
ID: 2727258
That will do fine.  I'll just mask the scroll bars that I'm not using.

Thanks very much.
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

867 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now