Without looking at the method body, I'll stay on your comment:
> doesn't even fire when you change the position of the scrollbar. The
> value
Unless you've made a typo in the post, you are missing a Handles
VScrollBar1.ValueChanged i.e.
Private Sub VScrollBar1_ValueChanged(ByVal sender As System.Object, ByVal e
As System.EventArgs) Handles VScrollBar1.ValueChanged
After fixing that (or if you are manually hooking to the event with
AddHandler), check out these threads:
http://groups-beta.google.com/group/...rch+this+group
Cheers
Daniel
--
http://www.danielmoth.com/Blog/
"Linda Lalewicz" <(E-Mail Removed)> wrote in message
news:BB4A9116-A515-401D-8918-(E-Mail Removed)...
>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!