scroll bar problem argent

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mktilu
    New Member
    • Apr 2007
    • 23

    scroll bar problem argent

    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

    Code:
    Sub Grid_Scroll(GrindName As Object, ScrollName As Object, Max As Integer, Id As Integer)
    ScrollName.Max = Max
    ScrollName.LargeChange = 5
    If ScrollName.Value < ScrollName.Max And ScrollName.Value <> 0 Then
        If Id = 1 Then
            GrindName.TopRow = ScrollName.Value
        Else
            GrindName.LeftCol = ScrollName.Value
        End If
    End If
    End Sub
    Last edited by Killer42; Apr 26 '07, 08:04 AM. Reason: Please use [CODE]...[/CODE] tags around your code.
  • Killer42
    Recognized Expert Expert
    • Oct 2006
    • 8429

    #2
    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.)

    Comment

    Working...