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
Nahhyan Jugal
NA
18
14.9k
Want to know C# code to load picturebox
Aug 9 2011 4:19 AM
try
{
string path = Application.StartupPath + @"\IMAGE\";
if (!System.IO.Directory.Exists(path))
System.IO.Directory.CreateDirectory(Application.StartupPath + @"\IMAGE\");
string filename = path + @"\" + openFileDialog1.SafeFileName;
pictureBox1.Image.Save(filename, System.Drawing.Imaging.ImageFormat.Jpeg);
System.IO.File.Move(path + @"\" + openFileDialog1.SafeFileName, path + @"\" + textBox1.Text + ".jpg");
}
catch (Exception ex)
{
MessageBox.Show("Failed To Save" + ex.Message);
i made a registration form.there is a picture box to insert picture who r registering.And upper code is the path where this picture is saved.Now i made a form which will show the profile of that registered parson after login.in the profile form there is also a picture box.after login the exact photo of that person will come in that box in the time of load of that profile form.But i do not khow the code.please let me know the code,as soon as possible.....
Reply
Answers (
2
)
Changing properties of a picturebox
Need details about graphical support in Windows Forms and WPF