By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,987 Members | 971 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,987 IT Pros & Developers. It's quick & easy.

scroll bar problem argent

P: 23
I have added horizontal and vertical scroll bar seperately for the grid not using default one.I have a problem with it .when i click at the arrow it works fine but when i click on the middle scroll thing it does not scroll properly.can u tell me what to do

example


this is the function i am calling when i scroll

Expand|Select|Wrap|Line Numbers
  1. Sub Grid_Scroll(GrindName As Object, ScrollName As Object, Max As Integer, Id As Integer)
  2. ScrollName.Max = Max
  3. ScrollName.LargeChange = 5
  4. If ScrollName.Value < ScrollName.Max And ScrollName.Value <> 0 Then
  5.     If Id = 1 Then
  6.         GrindName.TopRow = ScrollName.Value
  7.     Else
  8.         GrindName.LeftCol = ScrollName.Value
  9.     End If
  10. End If
  11. End Sub
Apr 26 '07 #1
Share this Question
Share on Google+
1 Reply


Expert 5K+
P: 8,434
Not sure what the problem is, but this seems like a very odd place to be setting the .Max and .LargeChange properties of the scrollbar. Isn't this called after the scrollbar has been clicked? These properties should have been set before the control was used.

(If .LargeChange has not been set yet, then perhaps that is the problem.)
Apr 26 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.