G
Guest
I am trying to stretch the dinky screen of the iPaq by adding a panel with a
scrollbar.
I got the panel on and populated with stuff, and the scrollbar set up but I
am not experienced and cannot figure out how to make the scrollbar talk to
the panel position.
I tried to add this following code, which does absolutely nothing and
doesn't even fire when you change the position of the scrollbar. The value
of VscrollBar1 does change but nothing is connecting.
Private Sub VScrollBar1_ValueChanged(ByVal sender As System.Object, ByVal e
As System.EventArgs)
If VScrollBar1.Value <> 0 Then
Panel1.Top = -(VScrollBar1.Value)
Else
Panel1.Top = 0
End If
End Sub
I have looked at some of the other posts, and they assume more knowledge
than I have. Could someone explain this using simple and complete terms? I
would be eternally, (or at least for a real long time) grateful!
scrollbar.
I got the panel on and populated with stuff, and the scrollbar set up but I
am not experienced and cannot figure out how to make the scrollbar talk to
the panel position.
I tried to add this following code, which does absolutely nothing and
doesn't even fire when you change the position of the scrollbar. The value
of VscrollBar1 does change but nothing is connecting.
Private Sub VScrollBar1_ValueChanged(ByVal sender As System.Object, ByVal e
As System.EventArgs)
If VScrollBar1.Value <> 0 Then
Panel1.Top = -(VScrollBar1.Value)
Else
Panel1.Top = 0
End If
End Sub
I have looked at some of the other posts, and they assume more knowledge
than I have. Could someone explain this using simple and complete terms? I
would be eternally, (or at least for a real long time) grateful!