Processes problem.
-
Hi I am developing a windows application in which it contains a grid and two buttons called play and delete. If user selects a row on the grid and clicks play button then all the images are shown in a slideshow. (for showing slide show iam using a a new form which it contains a picturebox.) if user selects a row on grid and clicks delete then it deletes the folder of images. THe problem is when i select a row and clicks the play button it is showing the slide show. After exiting if i select the same row and clicks delete button then it is saying the picture X is used by another process. How can I overcome this problem. Please Help me. Thanks in Advance. Ramu Medida.
-
Hi I am developing a windows application in which it contains a grid and two buttons called play and delete. If user selects a row on the grid and clicks play button then all the images are shown in a slideshow. (for showing slide show iam using a a new form which it contains a picturebox.) if user selects a row on grid and clicks delete then it deletes the folder of images. THe problem is when i select a row and clicks the play button it is showing the slide show. After exiting if i select the same row and clicks delete button then it is saying the picture X is used by another process. How can I overcome this problem. Please Help me. Thanks in Advance. Ramu Medida.
-
if images are being shown in the Grid. it means they are being used by another process. firstly Remove that Row then those images
-
THanks for your respose but the problem is not solved. Here the images are not displayed in the grid. Grid contains the path for the images folder. please help me.
-
is your slideshow form opens as dialog. if yes then disopose object of that slideshowForm for extra caution use
GC.Collect();