Link to home
Start Free TrialLog in
Avatar of Victor  Charles
Victor CharlesFlag for United States of America

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(C1Image.Text)
        IO.File.Copy(C1Image.Text, DestinationPath)

Thanks,

Victor
ASKER CERTIFIED SOLUTION
Avatar of Mike Tomlinson
Mike Tomlinson
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Victor  Charles

ASKER

Thank You!