User Profile
Collapse
-
Baglovely replied to Help needed with deleting a file.... Error: File is being used by anohter process.in Visual BasicFor reference I am using VB.Net 2003. -
Not sure i understand what you need, but if you just need to copy the file it's;
File.Copy(Sourc eFileName, DestinationFile Name)
eg:
File.Copy("c:\t est\test.txt", "c:\test1\test. txt")
Or if you want to overwrite:
File.Copy("c:\t est\test.txt", "c:\test1\test. txt", True)Leave a comment:
-
Two options;
1. Under TextChanged for the text boxes type:
txtBox.Text = LCase(txtBox.Te xt)
2. Change the Property "CharacterCasin g" for the TextBox to LowerLeave a comment:
-
Baglovely started a topic Help needed with deleting a file.... Error: File is being used by anohter process.in Visual BasicHelp needed with deleting a file.... Error: File is being used by anohter process.
I want to display a saved picture in a picture box, then delete the file, but i get the error:
"The process cannot access the file "C:\IMAGES\ABCD EF.jpg" because it is being used by another process."
here is the code i'm using.
PicBox.Image = Image.FromFile( C:\IMAGES\ABCDE F.jpg")
PicBox.Image.Di spose()
PicBox.Image = Nothing
File.Delete(C:\ IMAGES\ABCDEF.j pg")...
No activity results to display
Show More
Leave a comment: