|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
image file locked after usereplacement module here. For some reason, after an image (say /images/1.jpg) has been used/opened in the application. I cannot later overwrite it (during the application), even after i have closed it. "My.Computer.FileSystem.CopyFile(OpenFileDialog1.FileName, "\images\posters\" & Me.imagenum & ".jpg", True)" The process cannot access the file 'C:...\images\posters\1.jpg' because it is being used by another process. Is there a way to unload this image so that I can overwrite it? As soon as my application quits, the lock is removed. I can tell that my program is locking the file, but the image is not being displayed or used at that time!! please help, Thanks, Ted Form3.PictureBox1.Image = System.Drawing.Bitmap.FromFile(imgpath)
is how it is being loaded. is there a way to unload that? You should realize that you've asked a VB.net questions in the wrong
newsgroups. The *vb* groups are for VB Classic. All Net-related questions should be posted to the *dotnet* or *vsnet* newsgroups on msnew.microsoft.com. -- Show quoteHide quoteRandy Birch MS MVP Visual Basic http://vbnet.mvps.org/ Please reply to the newsgroups so all can participate. <thebh***@gmail.com> wrote in message news:1142894471.466286.304070@g10g2000cwb.googlegroups.com... : Form3.PictureBox1.Image = System.Drawing.Bitmap.FromFile(imgpath) : : is how it is being loaded. : : is there a way to unload that? :
Are there alternatives to using WIN32_Find_Data?
SendMessage vs. PostMessage test for empty array? VB6 Question VB6 applications with SQL Server and Adobe Runtime error 429 ADO Recordset Filter Problem Best ways for reading and editing text files OT: Blew away shortcut to desktop, How to replace it?? Windows 2000 Professional How to implement Link List in VB 6.0? |
|||||||||||||||||||||||