Unable to set ScrollPosition in Sub Activity_Create

Pantelis

Member
Licensed User
Longtime User
Hi

I am trying to set the Scrollposition property of one HorizontalScrollView with the code:: LongLayout.ScrollPosition = 700
If i put the code in a sub event of a button like button1_click it works ok.
But if i put the same code just before the end of "Sub Activity_Create" nothing happens. The ScrollView remains in its original scroll position.
Setting another property like "LongLayout.Height = 300" work ok on "Sub Activity_Create"
Why this happens?

Thanks
 

GGSoft

Member
Licensed User
Longtime User


So far I have used this "technique". Is it still valid?
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…