Results 1 to 8 of 8

Thread: Showing scrolling bars in UC

Threaded View

  1. #7

    Thread Starter
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,966

    Unhappy Re: Showing scrolling bars in UC

    heres 1 thing 100% strange
    Code:
    Private Sub ScrollingHorizontal_Change()
        Dim i As Long
        Dim value As Long
        For i = 0 To UserControl.Controls.Count - 1
            If UserControl.Controls(i).Name = "Timer1" Or UserControl.Controls(i).Name = "Picture1" Or UserControl.Controls(i).Name = "ScrollingHorizontal" Or UserControl.Controls(i).Name = "ScrollingVertical" Then
            Else
                If value > ScrollingHorizontal.value Then
                    UserControl.Controls(i).Left = UserControl.Controls(i).Left + 1
                ElseIf value < ScrollingHorizontal.value Then
                    UserControl.Controls(i).Left = UserControl.Controls(i).Left - 1
                ElseIf value = 0 Then
                End If
            End If
        Next i
        value = ScrollingHorizontal.value
    End Sub
    when i click in left scrolling horizontal button, the controls move to the right. but if click in right button the controls move to the left. but why the controls move to the same way(instead move to the left it move to the right)?
    Last edited by joaquim; Dec 8th, 2008 at 12:12 PM.
    VB6 2D Sprite control

    To live is difficult, but we do it.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width