Okay, I've got a ScrollView that scrolls manually just like a charm. But when I try to set the .ScrollPosition in runtime, nothing happens. I grinded through all scrollview related posts here, tried "DoEvents", tried "sleep(0)" tried a for next loop... nothing.
Sub btnPrefs_Click
lblPflanzenName.Text="UP! "&hoscPictureSlider.ScrollPosition
Sleep(0)
hoscPictureSlider.ScrollPosition=hoscPictureSlider.ScrollPosition+100dip
End Sub
Sub btnInfo1_Click
lblPflanzenName.Text="DOWN! "&hoscPictureSlider.ScrollPosition
Sleep(0)
hoscPictureSlider.ScrollPosition=hoscPictureSlider.ScrollPosition-100dip
End Sub
Sub hoscPictureSlider_ScrollChanged(Position As Int)
lblPflanzenName.Text=Position & " - " & hoscPictureSlider.ScrollPosition
End Sub
Now, with that code, clicking on the buttons return always zero when "text = ScrollView.ScrollPosition".
in ScrollChanged the value Position increments/decrements perfectly when I drag the ScrollView manually. But ScrollPosition stays zero.
How is this possible?
Thanks.