954,500 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

profile picture

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.....

smartjugal
Newbie Poster
11 posts since May 2011
Reputation Points: 10
Solved Threads: 0
 

If I understood you, you want to load a picture into a pictureBox?
And the right one? Does the image has a name?

Mitja Bonca
Nearly a Posting Maven
2,485 posts since May 2009
Reputation Points: 641
Solved Threads: 474
 

yes,as the person regestered,automatically the photo of his saved as his name.

smartjugal
Newbie Poster
11 posts since May 2011
Reputation Points: 10
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: