Solved

TopRow property of MS Flex Grid control

Posted on 2000-04-18
2
308 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
Comment Utility
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
Comment Utility
That will do fine.  I'll just mask the scroll bars that I'm not using.

Thanks very much.
0

Featured Post

Do You Know the 4 Main Threat Actor Types?

Do you know the main threat actor types? Most attackers fall into one of four categories, each with their own favored tactics, techniques, and procedures.

Join & Write a Comment

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When designing a form there are several BorderStyles to choose from, all of which can be classified as either 'Fixed' or 'Sizable' and I'd guess that 'Fixed Single' or one of the other fixed types is the most popular choice. I assume it's the most p…
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…
Show developers how to use a criteria form to limit the data that appears on an Access report. It is a common requirement that users can specify the criteria for a report at runtime. The easiest way to accomplish this is using a criteria form that a…

763 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

12 Experts available now in Live!

Get 1:1 Help Now