- Oct 30, 2000
- 42,589
- 5
- 0
Trying to catch up from the MFC world
Simple little program that has a bitmap image and moves it around the screen. Works great.
Image was of a bunny.
Now I am trying to have that image change into an animated image that is hopping.
I have loaded into the resource file, the animated image and the first frame of the image shows in the resource file (resx). So the picture itself is available.
I am using the PictureBox class to hold the images (both animated and static).
private System.Windows.Forms.PictureBox rabbit;
private System.Windows.Forms.PictureBox rabbit_Animated;
When I change the Image member variable to point to the PictureBox that contains the animated image, all that is then displayed is the animation background (grey)
rabbit.Image = rabbit_Animated.Image
Do I need to use some other type of class, set some other property or am I SOL in using this approach?
Simple little program that has a bitmap image and moves it around the screen. Works great.
Image was of a bunny.
Now I am trying to have that image change into an animated image that is hopping.
I have loaded into the resource file, the animated image and the first frame of the image shows in the resource file (resx). So the picture itself is available.
I am using the PictureBox class to hold the images (both animated and static).
private System.Windows.Forms.PictureBox rabbit;
private System.Windows.Forms.PictureBox rabbit_Animated;
When I change the Image member variable to point to the PictureBox that contains the animated image, all that is then displayed is the animation background (grey)
rabbit.Image = rabbit_Animated.Image
Do I need to use some other type of class, set some other property or am I SOL in using this approach?