Solved

MSflexgrid and scrolling

Posted on 2001-09-10
6
335 Views
Last Modified: 2012-06-27
This may be an easy question....

I have created an application that is using the MSflexgrid control. I have created a "find" button that looks up data for a user in the flexgrid.

The lookup works great. i set my row and column by;

With MSflecgrid1
    .row = rowlocation
    .col = collocation
end with

This code puts a box round the cell I want but it does not scroll to that cell. (i.e if my data is of the screen, I have to manually scroll until I found my box that my find button found). How do I automate the scroll procedure so that it makes the row visible when I seek it?
0
Comment
Question by:lyners
6 Comments
 
LVL 1

Expert Comment

by:sanjeevjain1973
ID: 6473251
MS Flex grid have scrollBar Property
 You can set design time  or run time.


With MSflecgrid1

   .ScrollBar = 0 or 1 0r 2 0r 3
   .row = rowlocation
   .col = collocation
end with


if value is 0 --None
1 then Hoorizantal Scroll
2  then Vertical
3 is for both scrollbar

Sanjeev
0
 
LVL 75

Accepted Solution

by:
Anthony Perkins earned 100 total points
ID: 6473277
You can set the TopRow property as in

With MSflecgrid1
   .row = rowlocation
   .col = collocation
   .TopRow = rowlocation
end with

0
 
LVL 1

Expert Comment

by:sanjeevjain1973
ID: 6473278
Soory! Property Name is MsFlexGrid.ScrollBars not MsFlexGrid.ScrollBar

0
VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

 
LVL 9

Expert Comment

by:Valliappan AN
ID: 6473282
ya, agree with acperkins one. You need to set the TopRow property.
0
 
LVL 43

Expert Comment

by:TimCottee
ID: 6473650
There is also a .leftcol property which can be used if the column in question has been scrolled off the visible section of the grid. In combination with .toprow you can ensure that the cell is visible no matter how many rows/cols are visible.
0
 
LVL 1

Author Comment

by:lyners
ID: 6477648
Exactly what I needed. Thanks!
0

Featured Post

Optimizing Cloud Backup for Low Bandwidth

With cloud storage prices going down a growing number of SMBs start to use it for backup storage. Unfortunately, business data volume rarely fits the average Internet speed. This article provides an overview of main Internet speed challenges and reveals backup best practices.

Question has a verified solution.

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

Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
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…

825 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