Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- private void btn_Browse_Click(object sender, EventArgs e)
- {
- OpenFileDialog ofd = new OpenFileDialog();
- ofd.RestoreDirectory = true;
- if (ofd.ShowDialog() == DialogResult.OK)
- {
- txt_upload.Text = ofd.FileName;
- byte[] file = File.ReadAllBytes(txt_upload.Text);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement