TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
bishoe nb
NA
623
80.2k
Could not find file 'openFileDialog1'.
Aug 23 2018 12:00 AM
When updating I do not choose which image shows the error shown
I may not want to update the image every time but I update other data
#region SavePicProfile
const
string
new_dir = @
"E:\x\ProfilePIC\"
;
//MessageBox.Show(openFDProfile.FileName);
string
extension = System.IO.Path.GetExtension(openFDProfile.FileName);
string
renamed_name = ID_Member_ +
""
+ extension;
string
fName = System.IO.Path.Combine(new_dir, renamed_name);
if
(File.Exists(fName))
File.Delete(fName);
System.IO.File.Copy(openFDProfile.FileName, fName);
string
msg =
string
.Format(
"Copied {0} to {1}"
, openFDProfile.FileName, fName);
//MessageBox.Show(msg, this.Text, MessageBoxButtons.OK, MessageBoxIcon.Information);
#endregion
System.IO.File.Copy(openFDProfile.FileName, fName); Additional information: Could not find file 'openFileDialog1'.
in PicImage_Regisrt_Click
//image Register
openFDProfileImage_Regisrt.Title =
"Insert an image "
;
openFDProfileImage_Regisrt.InitialDirectory =
"C:\\Users\bishoe\\Downloads"
;
openFDProfileImage_Regisrt.FileName =
""
;
openFDProfileImage_Regisrt.Filter =
"JPEG Image|*.jpg|GIF Image|*.gif|PNG Image|*.png"
;
openFDProfileImage_Regisrt.Multiselect =
false
;
if
(openFDProfileImage_Regisrt.ShowDialog() != DialogResult.OK)
return
;
//display image in pic box
PicImage_Regisrt.ImageLocation =
openFDProfileImage_Regisrt.FileName;
Reply
Answers (
5
)
UWP shadow showing
How to convert google(Public) image to byte array asp.net c#