Victor Charles
asked on
Help with uploading image from Windows App (VS2010)
I am using the code below to upload an image but I get an error message if the file already exist. How do I check if the file already exist and if it does inform users with a message box?
Dim DestinationPath As String = Application.StartupPath & "\Images\" & IO.Path.GetFileName(C1Imag e.Text)
IO.File.Copy(C1Image.Text, DestinationPath)
Thanks,
Victor
Dim DestinationPath As String = Application.StartupPath & "\Images\" & IO.Path.GetFileName(C1Imag
IO.File.Copy(C1Image.Text,
Thanks,
Victor
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER