|
-
February 24th, 2010, 10:35 AM
#1
Image not being displayed
Hello everyone,
The problem with the code below is that pictureBox2 is not displaying the image.
public static void updateImage()
{
Image img;
Form1 myClass = new Form1();
img = myClass.pictureBox1.Image;
myClass.pictureBox2.Image = img;
}
My guess is that it is because I have to create a new instance of the Form1 class. Any suggestions?
Many thanks in advance,
bassguru
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
|