Solved

TopRow property of MS Flex Grid control

Posted on 2000-04-18
2
313 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

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