Skip to content

Instantly share code, notes, and snippets.

@nhoxbypass
Created December 11, 2017 14:21
Show Gist options
  • Select an option

  • Save nhoxbypass/4c3b7eaf96556e0e21d815e96d68eb29 to your computer and use it in GitHub Desktop.

Select an option

Save nhoxbypass/4c3b7eaf96556e0e21d815e96d68eb29 to your computer and use it in GitHub Desktop.
private void button1_Click(object sender, EventArgs e)
{
// Show hộp thoại open file ra
// Nhận kết quả trả về qua biến kiểu DialogResult
DialogResult result = openFileDialog1.ShowDialog();
//Kiểm tra xem người dùng đã chọn file chưa
if(result == DialogResult.OK)
{
// Gán ....
// Xử lý...
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment