Solved

MSflexgrid and scrolling

Posted on 2001-09-10
6
333 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
Comment Utility
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
Comment Utility
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
Comment Utility
Soory! Property Name is MsFlexGrid.ScrollBars not MsFlexGrid.ScrollBar

0
What Is Threat Intelligence?

Threat intelligence is often discussed, but rarely understood. Starting with a precise definition, along with clear business goals, is essential.

 
LVL 9

Expert Comment

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

Expert Comment

by:TimCottee
Comment Utility
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
Comment Utility
Exactly what I needed. Thanks!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction In a recent article (http://www.experts-exchange.com/A_7811-A-Better-Concatenate-Function.html) for the Excel community, I showed an improved version of the Excel Concatenate() function.  While writing that article I realized that no o…
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
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…

762 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

11 Experts available now in Live!

Get 1:1 Help Now