SK
2005-09-03 21:37:18 UTC
?????????? All!
??? ????? ???:
Private Im As System.Drawing.Image
Private Sub btnImage_Click(...)
Im = Image.FromFile("Something.jpg")
? ??? ????? ?? ?????????? (?? ?????)
End Sub
Private Sub btnRemoveImage_Click(...)
Im.Dispose()
File.Delete("Something.jpg")
??? ????? ??????????? Exception:
"The process cannot access the file "Somethin.jpg" because it is being used
by another process"
? ????? ???????: ??? ????????? ?? ??????, ?????? ???? ????????? ??????? ?
???? ??????????? Exception.
??? ?????? ? ???? ????????????
? ???: ? ????? PictureBox-? ???? ?????? Invalidated. ??? ??? ??????????
End Sub
??? ????? ???:
Private Im As System.Drawing.Image
Private Sub btnImage_Click(...)
Im = Image.FromFile("Something.jpg")
? ??? ????? ?? ?????????? (?? ?????)
End Sub
Private Sub btnRemoveImage_Click(...)
Im.Dispose()
File.Delete("Something.jpg")
??? ????? ??????????? Exception:
"The process cannot access the file "Somethin.jpg" because it is being used
by another process"
? ????? ???????: ??? ????????? ?? ??????, ?????? ???? ????????? ??????? ?
???? ??????????? Exception.
??? ?????? ? ???? ????????????
? ???: ? ????? PictureBox-? ???? ?????? Invalidated. ??? ??? ??????????
End Sub