Currently I\'m using the following function
file.Delete();
But how can I use this function to send a file to the recycle bin instead of jus
From MSDN:
Add a reference to Microsoft.VisualBasic assembly. The needed class is found in this library.
Add this using statement to the top of the file using Microsoft.VisualBasic.FileIO
;
Use FileSystem.DeleteFile
to delete a file, it has the option to specify recycle bin or not.
Use FileSystem.DeleteDirectory
to delete a directory with the option to specify to send it to the recycle bin or not.