vb.net error

Please support our VB.NET advertiser: Intel Parallel Studio Home
Reply

Join Date: Sep 2008
Posts: 4
Reputation: daniel50096230 is an unknown quantity at this point 
Solved Threads: 0
daniel50096230 daniel50096230 is offline Offline
Newbie Poster

vb.net error

 
0
  #1
Jan 5th, 2009
Hi, I have the following codes:

  1. me.hide()
  2. staff.show()

It run smoothly for the first time,but when I execute it for the second time,it occured the following errors:

Unable to copy file "obj\Debug\FYP.exe" to "bin\Debug\FYP.exe". The process cannot access the file 'bin\Debug\FYP.exe' because it is being used by another process.


May I know what is the problem???
Reply With Quote Quick reply to this message  
Join Date: Aug 2006
Posts: 2,065
Reputation: Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice Ramy Mahrous is just really nice 
Solved Threads: 256
Featured Poster
Ramy Mahrous's Avatar
Ramy Mahrous Ramy Mahrous is offline Offline
Postaholic

Re: vb.net error

 
0
  #2
Jan 5th, 2009
Because the main thread doesn't terminated. You just hide the main form, I think you close application from staff form, right?
so, in its close event add this Application.Exit
BI Developer | LINKdotNET
B.Sc Computer Science, Helwan University
Technical blog | http://ramymahrous.wordpress.com
LinkedIn | http://www.linkedin.com/in/ramymahrous
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 8
Reputation: hatemstar is an unknown quantity at this point 
Solved Threads: 0
hatemstar hatemstar is offline Offline
Newbie Poster

Re: vb.net error

 
0
  #3
Jan 5th, 2009
I Prefer to Put ( .close() ) instead of ( .hide )

me.close()

then see the result ..
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the VB.NET Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC