Hi,
i am facing a problem in c#.net i have a user data form where i have used picture box and opendailogbox when i am selecting a picture it is showing in picturebox now what i want is that i have a button on the form when i click on that button picture should be automatically store in my solution image folder???
help me!
saj_amo
0
Junior Poster in Training
Recommended Answers
Jump to Posthi!
try this:
string oldfilename = openfiledlg.Filename // e.g. c:/test/test.bmp - name from your opendialog string newfilename = Path.Combine(Application.StartupPath,Path.GetFileName(oldfilename )); File.Copy(oldfilename ,newfilename);
i hope there are no typing -errors :)
Daniel
All 3 Replies
DanielGreen
6
Light Poster
sknake
1,622
Senior Poster
Featured Poster
saj_amo
0
Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.