What's the code to move pictures left to right using x and y axis instead of hide and show?
+6
A:
You're probably using Visual Basic .NET 2008.
Please be aware that it has nothing to do with C++.
If you have a PictureBox named MyPicture
, you can move it by changing the Top
and Left
properties.
If you want to animate the picture (for example, if you want to gradually move it across the screen), you'll need to use the Timer component, and change the Left
property in the Timer's Tick
event.
SLaks
2009-12-17 03:05:04