M
marciocamurati
Hi,
I have a problem with my application exit, I create a button that call
another form and close my application:
Private Sub closeApplication()
Dim Status As New Status
status.Show()
Application.Exit()
End Sub
At this new form I will rename the exe of the Main Form but when I
execute the:
System.IO.File.Copy(...)
But they give this error at the catch:
System.IO.IOException: The process cannot access the file "C:\......"
because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.File.InternalCopy(String sourceFileName, String
destFileName, Boolean overwrite)
at System.IO.File.Copy(String sourceFileName, String
destFileName, Boolean overwrite)
at Atualizar.Atualizar.trocarArquivos()
Anyone know how can I fix it? Another form to exit "full" to the
application for example ?
Thanx
I have a problem with my application exit, I create a button that call
another form and close my application:
Private Sub closeApplication()
Dim Status As New Status
status.Show()
Application.Exit()
End Sub
At this new form I will rename the exe of the Main Form but when I
execute the:
System.IO.File.Copy(...)
But they give this error at the catch:
System.IO.IOException: The process cannot access the file "C:\......"
because it is being used by another process.
at System.IO.__Error.WinIOError(Int32 errorCode, String str)
at System.IO.File.InternalCopy(String sourceFileName, String
destFileName, Boolean overwrite)
at System.IO.File.Copy(String sourceFileName, String
destFileName, Boolean overwrite)
at Atualizar.Atualizar.trocarArquivos()
Anyone know how can I fix it? Another form to exit "full" to the
application for example ?
Thanx