Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- openFileDialog1.Filter = "jpg files(*.jpg)|*.jpg|all files|*.*";
- openFileDialog1.Title = "Open a file...";
- openFileDialog1.FileName = "";
- if (openFileDialog1.ShowDialog() == DialogResult.OK)
- {
- pictureBox1.Image = new Bitmap(openFileDialog1.FileName);
- pictureBox1.Visible = true;
- openFileDialog1.Dispose();
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement