I'm just added a new form to my application for entering information to
a database. To do this I did:
Me.Hide()
Dim Form1 As New Form1
Form1.Show()
When I run debugger, test, and end the software (By clicking the X on
the top right corner) the program ends. Well, when I go to debug mode I
get an error stating that:
"Could not copy temporary files to the output directory."
"The file 'Project.exe' cannot be copied to the run directory. The
process cannot access the file because it is being used by another
process."
The only way I can get back to testing the software is to open Task
Manager and end the process of Project.exe. The only thing I can think
of is that when the user is finished inputting data into Form1 they
press the "Hide Me" button to hide the form. It seems that if this form
is still open and the .exe can't end.
I am somewhat new to windows application development so I really don't
know what to think. Thanks in advance.