I'm fairly new at visual basic and I'm just making a simple little program that makes the background behind the character move instead of the character so I have a picturebox that holds the background and moves around. The problem I'm having is that the picturebox that holds the character has an animation with a transparent background. I set the color of the picturebox to transparent but it takes it's color directly from the back, the form, is there a way to make it take the picture from the picturebox or any other way to achieve this. I can't find any code related to this I can't find a way to make the form display the same thing as the picturebox that holds the background.
What I've thought to do is try and save the program screen as a picture and load it onto the form backgroundimage
I could not find a way to do that the closest I got was this
CODE
Private Sub reloadb()
picturebox2.Hide()
me.backgroundimage.save(C:\bimage.jpg")
Me.BackgroundImage = Image.FromFile("C:\bimage.jpg")
picturebox2.Show()
End Sub
that doesn't work because for some reason unless the form has been drawn on it won't save and even if it did it would change nothing it's just saving and loading the same thing
I tried to change the me.backgroundimage.save to
CODE
backview.Image.Save("C:\bimage.jpg")
backview is the picturebox with the background I'm using in it
I did this with a small hope it might only save the part shown on the form I was wrong, and it only managed to do it once because visual basic has an issue overwriting the file.
I can't think of anything else to do.
This post has been edited by caz345: 1 Aug, 2008 - 08:17 AM