|
-
Feb 5th, 2015, 06:28 AM
#1
Thread Starter
New Member
Racing Game Avatars
Hi I am trying to transfer an image from one form to another using picture boxes, ive managed to get it so one image gets transferred over to the correct box but the other 3 images do not transfer over.
Here is the code Im using (attempting to use) for the transfer
Code:
frmWackyRacing.PicAntHillMob.Image = picAvatar1.Image
FormRace2.PicAntHillMob.Image = picAvatar1.Image
-
Feb 5th, 2015, 06:44 AM
#2
Re: Racing Game Avatars
The documentation does say that the same Image can't be displayed in multiple PictureBoxes. That seems not to be the case, but perhaps it is true if the PictureBoxes are on different forms. Firstly, make sure that it's actually the right forms you're using. If those are the default instances you're using in that code then you must have displayed the default instance in the first place. Assuming that they are the correct forms, try using different Images for each one and see if that works. If it does then that is presumably the issue, so you would have to make multiple copies of the Image.
-
Feb 5th, 2015, 08:20 AM
#3
Thread Starter
New Member
Re: Racing Game Avatars
The name of the forms are all correct, like i said ive managed to get it so one image appears in picture boxes on two different forms using the code above but the other 3 images do not go to the correct pictureboxes on either forms.
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
|