the code below works, but, if the user tries to exit the form(click on the X) while the files are being copied, the form crashes and does not respond.
any ideas on how to fix this?
VB.NET:
Private Sub Command1_Click(ByVal eventSender As System.Object, ByVal eventArgs As System.EventArgs) _
Handles Command1.Click
My.Computer.FileSystem.CopyDirectory("C:\MrddDemoData", "g:\copytest", True)
End Sub
any ideas on how to fix this?
Last edited by a moderator: