-
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
-
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.
-
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.