Results 1 to 3 of 3

Thread: Racing Game Avatars

  1. #1

    Thread Starter
    New Member
    Join Date
    Jan 2015
    Posts
    4

    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

  2. #2
    .NUT jmcilhinney's Avatar
    Join Date
    May 2005
    Location
    Sydney, Australia
    Posts
    105,461

    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.

  3. #3

    Thread Starter
    New Member
    Join Date
    Jan 2015
    Posts
    4

    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
  •  



Click Here to Expand Forum to Full Width