Moving Labels and Pictures
What's the code to move pictures left to right using x 开发者_如何转开发and y axis instead of hide and show?
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.
精彩评论