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
kenneth quirici
NA
378
1.7k
loading picturebox image from file
Dec 25 2020 12:25 AM
I tried these two approaches. Neither worked - the picture box remains empty. How can I fix the code? I must be missing something obvious.
1.
if
(File.Exists(saveImageFileName))
{
MessageBox.Show(
"Image file exists"
);
tempImage = Image.FromFile(saveImageFileName);
pictureBox.Image = tempImage;
}
2
if
(File.Exists(saveImageFileName))
{
MessageBox.Show(
"Image file exists"
);
pictureBox.Image =
new
Bitmap(saveImageFileName); ;
}
Reply
Answers (
5
)
I cannot access richTextBox1.Document which I need for storing into db
How to create bar code using c#