G
Guest
invalidEnumArgumentException error during run-time, it builds OK...didn't
like when I added fileio.uicanceloption.throwExceptions
any ideas..?
thanks in advance!!
Try
FileIO.FileSystem.DeleteDirectory(strLocString,
FileIO.DeleteDirectoryOption.DeleteAllContents,
FileIO.UICancelOption.ThrowException)
Catch e As System.IO.IOException
MessageBox.Show("Error deleteing " & strLocString & " directory"
& ControlChars.CrLf & e.Message, " Error In Creation")
End Try
like when I added fileio.uicanceloption.throwExceptions
any ideas..?
thanks in advance!!
Try
FileIO.FileSystem.DeleteDirectory(strLocString,
FileIO.DeleteDirectoryOption.DeleteAllContents,
FileIO.UICancelOption.ThrowException)
Catch e As System.IO.IOException
MessageBox.Show("Error deleteing " & strLocString & " directory"
& ControlChars.CrLf & e.Message, " Error In Creation")
End Try