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
anil john
NA
156
210.5k
picture preview
Sep 28 2012 1:37 AM
i am getting an error on executing the below code,plz help me to rectify this
error:Cannot implicitly convert type string to system.drawing.image
private void button2_Click(object sender, EventArgs e)
{
frmPreview frmPreviewObj = new frmPreview();
frmPreviewObj.Show();
//Bitmap image = new Bitmap(fname, true);
Image img = fname;
frmPreviewObj.pictureBox1.Image = img;
}
Reply
Answers (
4
)
student management system
i upload the photo in asp.net but i am getting the error