Hey,
This one has me stumped. I'm trying to change the location of an object's X position so that it has a marquee like effect. I'm doing this with buttons and text, etc...
I've been experimenting with code:
With the intention of it moving 10px to the left. I would then use a timer, but it scrolls automatically for me, why?Code:PictureBox1.Location = New Point(PictureBox.Location.X - 10, PictureBox.Location.Y)
If I try,
where the Picture is previously at 50,50 it will not do this. Why?Code:PictureBox1.Location = New Point(51,50)
Finally, what I want to know is:
If I use:
which seems great (different - affects the speed). How do I get it to return on the other side of the screen?Code:PictureBox1.Location = New Point(PictureBox.Location.X - 10, PictureBox.Location.Y)
Thanks




Reply With Quote
