Results 1 to 6 of 6

Thread: scroll manual in panel

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Posts
    81

    scroll manual in panel

    hi all. i want to manual scroll in panel. I already know option auto scroll, but it is not what i want. so anyone know how to do that. please share?please?

  2. #2
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: scroll manual in panel

    Please provide more details. What EXACTLY are you trying to achieve?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  3. #3

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Posts
    81

    Re: scroll manual in panel

    sorry for late reply. i want to write code for scroll in panel. i don't want to used auto scroll option. hope you understand. please help me? please? here is my code:

    Code:
    Private Sub frm_Home_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
            Me.Panel1.Width = 732
            Me.Panel1.Height = 687
    
            Me.Panel1.VerticalScroll.Enabled = True
            Me.Panel1.VerticalScroll.Visible = True
            Me.Panel1.VerticalScroll.Maximum = 1168
            Me.Panel1.VerticalScroll.Minimum = 0
            Me.Panel1.VerticalScroll.SmallChange = 5
            Me.Panel1.VerticalScroll.LargeChange = 670
    End Sub
    
        Private Sub Panel1_Scroll(ByVal sender As Object, ByVal e As System.Windows.Forms.ScrollEventArgs) Handles Panel1.Scroll
            '        MsgBox(e.NewValue)
            If Me.Panel1.VerticalScroll.Value < Me.Panel1.VerticalScroll.Maximum Then
                Me.Panel1.VerticalScroll.Value = 640
            ElseIf Me.Panel1.VerticalScroll.Value > Me.Panel1.VerticalScroll.Minimum Then
                Me.Panel1.VerticalScroll.Value = Me.Panel1.VerticalScroll.Value - e.NewValue
            ElseIf Me.Panel1.VerticalScroll.Value = Me.Panel1.VerticalScroll.Maximum Then
                Me.Panel1.VerticalScroll.Value = Me.Panel1.VerticalScroll.Maximum
            ElseIf Me.Panel1.VerticalScroll.Value = Me.Panel1.VerticalScroll.Minimum Then
                Me.Panel1.VerticalScroll.Value = Me.Panel1.VerticalScroll.Minimum
            End If
        End Sub

  4. #4
    Super Moderator jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    111,221

    Re: scroll manual in panel

    What EXACTLY are you trying to achieve? For example, are you trying to make sure a particular control is within the Panel's viewport?
    Why is my data not saved to my database? | MSDN Data Walkthroughs
    VBForums Database Development FAQ
    My CodeBank Submissions: VB | C#
    My Blog: Data Among Multiple Forms (3 parts)
    Beginner Tutorials: VB | C# | SQL

  5. #5

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Posts
    81

    Re: scroll manual in panel

    I would like to scrollable panel in run time without auto scroll option turn on. help me please?

  6. #6

    Thread Starter
    Lively Member
    Join Date
    Jul 2005
    Posts
    81

    Re: scroll manual in panel

    it is possible to something like that. anyidea please? please?

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