G
Guest
Hi,
I have a windows application that contains a PictureBox control. I am using
the statement
PicBox.Image = new Bitmap ("C:\Pic.jpg");
to load a file into the PictureBox to be displayed.
I am using a timer control to rotate the pictures that I display Pic0 - Pic9
every 30 seconds.
However, as I change the picture to the the next one in the sequence, the
old picture is not being "released" and windows will not allow me to edit the
name etc until the entire application is closed down.
How do I drop the connection to the image file when I no longer wish to
display it in my PictureBox so that the file can be edited outside of my
application.
Many thanks in advance
I have a windows application that contains a PictureBox control. I am using
the statement
PicBox.Image = new Bitmap ("C:\Pic.jpg");
to load a file into the PictureBox to be displayed.
I am using a timer control to rotate the pictures that I display Pic0 - Pic9
every 30 seconds.
However, as I change the picture to the the next one in the sequence, the
old picture is not being "released" and windows will not allow me to edit the
name etc until the entire application is closed down.
How do I drop the connection to the image file when I no longer wish to
display it in my PictureBox so that the file can be edited outside of my
application.
Many thanks in advance