• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 227
  • Last Modified:

Trying to get vscroll to work with a frame. Please assist...thanks.

Trying to get the scroll and frame to work right. The scroll needs to go to the top, which it does but the frame needs to go only up  to 100 but it doesn't. Well I can't get it just right. There is a counter right behind it that needs to be visible at all times so the frame needs to drop down so the user can see it, but it isn't quite right.

When the form loads it is okay, but if I use the scroll or go to the next record it is doesn't show the counter or the top of the frame, it almost does. I tried playing with the numbers however I am at a loss, so someone please help me...please?

Private Sub VScroll3_Change()
'VScroll3.Value = 0
'fraMain.Top = 100
'frmMain.fraMain.Top = -VScroll3.Value


End Sub

on page load:
                    frmMain.Show
                    frmMain.fraMain.Visible = 100
                    frmStart_up.Hide
                    VScroll3.Value = 0

Thanks in advance for the assistance!
0
tinapardi
Asked:
tinapardi
1 Solution
 
aikimarkCommented:
Here are the vscroll properties you will need to set and adjust.

.MinValue
.MaxValue
.LargeChange
.SmallChange
.Value

You will probably need to consider responding to both the _Click and the _Change events.

Consider setting the .MinValue equal to a negative number and your .MaxValue equal to zero.

I'm not sure I understand how you are using this frame to show record data, so this is just the first pass at your solution.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Ultimate Tool Kit for Technology Solution Provider

Broken down into practical pointers and step-by-step instructions, the IT Service Excellence Tool Kit delivers expert advice for technology solution providers. Get your free copy now.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now