Click here to Skip to main content
15,893,668 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi All,please help me,i have open file dialog on my form,now i want to save the image to a folder in my project opened with the help of open dialog box,how can i do this?
Posted
Comments
BillWoodruff 27-Dec-14 8:45am    
The "image" of ?

1 solution

you can try with relative path, set you need to save images to "Images" folder under your application folder then, set InitialDirectory as below
C#
openFileDialog.InitialDirectory = Path.Combine(Application.StartupPath,
@"Images");
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900