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

Move a control to random positions

P: 2
Any idea how to make the picture move from various position randomly?
May 7 '07 #1
Share this Question
Share on Google+
3 Replies


Expert 5K+
P: 8,434
Any idea how to make the picture move from various position randomly?
Can you try to describe in a bit more detail what you want to achieve? For instance you refer to "the" picture. Which picture is that? And what version of VB are you using?
May 7 '07 #2

P: 2
microsoft visual studios 2005. hmmm, let's just say move label1 in random positions.
May 7 '07 #3

Expert 5K+
P: 8,434
microsoft visual studios 2005. hmmm, let's just say move label1 in random positions.
There have been various posts here about generating random numbers. Here's one example, though you will need to do a bit of digging through the code.

Do you know how to move a label? In VB6 you can either set the .Top & .Left properties, or use the .Move method. Not sure about your version.
May 7 '07 #4

Post your reply

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