r/visualbasic • • Dec 12 '16

VB.NET Tutorial - Move a PictureBox Across a Form

https://www.youtube.com/watch?v=Q4zXb4LSi50
0 Upvotes

3 comments sorted by

0

u/Ultrachance850 Dec 12 '16

CODE:

PictureBoxName.Location = New Point (PictureBoxName.Location.X + 5, PictureBoxName.Location.Y)

to move it 5 pixels to the right

2

u/TheFotty Dec 13 '16

A 5 minute video to show a single line of code that literally just moves a control to the right by 5 with each timer tick?

1

u/Ultrachance850 Dec 13 '16

Perhaps for you, like me, 10 seconds is more than enough to explain something, but there exists some people out there that need a bit more time to learn and understand something.