|
-
Nov 30th, 2011, 09:22 AM
#1
Thread Starter
New Member
making random picture boxes go on the form
hi
i am making a game in visual basic and when the picture box that you have to shoot resets, sometimes it resets off the form i use this code to make the picture box move randomly :
PbxMet.Top = Int(Rnd() * (Me.Height - PbxMet.Height))
key :
pbxmet = picture box you have to shoot
me = the form
anyone know how to keep it on the form
thanks in advance
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|