?
Solved

MSflexgrid and scrolling

Posted on 2001-09-10
6
Medium Priority
?
341 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
[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
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 400 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
What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

 
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

Enroll in August's Course of the Month

August's CompTIA IT Fundamentals course includes 19 hours of basic computer principle modules and prepares you for the certification exam. It's free for Premium Members, Team Accounts, and Qualified Experts!

Question has a verified solution.

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

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 …
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
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…
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…
Suggested Courses
Course of the Month10 days, 12 hours left to enroll

765 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