|
-
Jun 17th, 2008, 04:22 AM
#1
Thread Starter
Lively Member
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?
-
Jun 17th, 2008, 06:10 AM
#2
Re: scroll manual in panel
Please provide more details. What EXACTLY are you trying to achieve?
-
Jun 17th, 2008, 10:32 PM
#3
Thread Starter
Lively Member
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
-
Jun 17th, 2008, 10:41 PM
#4
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?
-
Jun 17th, 2008, 11:00 PM
#5
Thread Starter
Lively Member
Re: scroll manual in panel
I would like to scrollable panel in run time without auto scroll option turn on. help me please?
-
Jun 18th, 2008, 12:02 AM
#6
Thread Starter
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|