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???
Jump to Post
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 :)
All 3 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.19 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.