How can i move scrollbars of picturebox when a button is pressed?
I have flowLayoutPanel (Dock: none, AutoSize: false, AutoScroll: true) and i placed on it a PictureBox (Dock: none, SizeMode: AutoSize). I loaded a large image (9000x6315px) into PictureBox so scrollbars are visible and allow me to scroll map. But.. only with mouse. How can i scroll a PictureBox using a code, when a button is pressed?
Problem is BETTER visible in this video on youtube (duration 3mins) and will let you better understand what i mean:
In Embarcadero Rad Studio i could write something like this:
ScrollBox1->HorzScrollBar->Position=500;
ScrollBox1->VertScrollBar->Position=500;
Is it possible in VS?
Thank you!