Advertisement
Guest User

Untitled

a guest
Jun 24th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.37 KB | None | 0 0
  1. private void btn_Browse_Click(object sender, EventArgs e)
  2.         {
  3.             OpenFileDialog ofd = new OpenFileDialog();
  4.             ofd.RestoreDirectory = true;
  5.  
  6.             if (ofd.ShowDialog() == DialogResult.OK)
  7.             {
  8.                 txt_upload.Text = ofd.FileName;
  9.  
  10.                 byte[] file = File.ReadAllBytes(txt_upload.Text);
  11.             }
  12.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement