By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,057 Members | 1,407 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,057 IT Pros & Developers. It's quick & easy.

move image

P: 2
hi
i have one prob i want move image from one location to another location in Picturebox just like move the vechile on the road
Oct 28 '06 #1
Share this Question
Share on Google+
2 Replies


P: 5
hi
i have one prob i want move image from one location to another location in Picturebox just like move the vechile on the road


Plz giv little bit more details
whether u want that picturebox should stay at its position and image should mean like scrolling an image(that is a requirement in case u hav small picturebox but large picture) OR u dont have any problem in moving a picturebox?
Oct 28 '06 #2

Expert 5K+
P: 8,434
Allow me to add another question - do you mean you want to move the whole image (as in scrolling), or do you want to move a smaller image around on a larger image (like an animated figure, for example)?

If you want to move the entire picture, you can just move the picturebox around by using the .Move method, or changing the top/left properties (remember, you can move to locations lower than zero). If you want it to move within a visibly bounded area (a frame, say) then just place it inside another picturebox.

It's also possible to use a similar technique (nested picturebox or image control) to move something around within another picture, but it may not be the best method.

Oh, one more thing - what version of VB?
Oct 29 '06 #3

Post your reply

Sign in to post your reply or Sign up for a free account.