In my program I am sending a database in the form_closed
event to my email , in in form_load
event I want to get the database from my email and to use it .
I'm doing this to get the database from another computers in my project.
but the problem is in this line :
Attachment database = new Attachment("DataBase\\USBrowser.accdb");
I get an exception that the database is being used by another process , how to deal with this problem ? can I stop the database of being used by another process? ,, any other suggestions are welcomed .
thanx in advance