Advertisement
Guest User

Untitled

a guest
Feb 25th, 2017
56
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.42 KB | None | 0 0
  1. openFileDialog1.Filter = "jpg files(*.jpg)|*.jpg|all files|*.*";
  2. openFileDialog1.Title = "Open a file...";
  3. openFileDialog1.FileName = "";
  4. if (openFileDialog1.ShowDialog() == DialogResult.OK)
  5. {
  6. pictureBox1.Image = new Bitmap(openFileDialog1.FileName);
  7. pictureBox1.Visible = true;
  8. openFileDialog1.Dispose();
  9.  
  10.  
  11.  
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement