IN C#,
I want to show an image which is continuously updated in a picture box.
It's something like this:
Image img = Image.FromFile( "pic.gif");
picBox.Image = img;
...
...
/*
I AM GETTING AN ERROR WHILE OPENING THIS FILE
*/
FileStream fs = new FileStream("pic .gif",FileMode. Create,FileAcce ss.Write)
...
...
fs.Close();
...
...
I know that the error is bcoz the pic box has the handle to that image.
I don't get any error if I use two images and use them alternately.
But, I m looking for a better solution.
Plz inform me if u have one!
Happy c#ing.
I want to show an image which is continuously updated in a picture box.
It's something like this:
Image img = Image.FromFile( "pic.gif");
picBox.Image = img;
...
...
/*
I AM GETTING AN ERROR WHILE OPENING THIS FILE
*/
FileStream fs = new FileStream("pic .gif",FileMode. Create,FileAcce ss.Write)
...
...
fs.Close();
...
...
I know that the error is bcoz the pic box has the handle to that image.
I don't get any error if I use two images and use them alternately.
But, I m looking for a better solution.
Plz inform me if u have one!
Happy c#ing.
Comment