檢查檔案位置是否存在
bool isFileExists = File.Exists(@"C:\檔案路徑");//存在為true
瀏覽檔案(檔案名稱)
private void button1_Click(object sender, EventArgs e)
{
OpenFileDialog openFileDialog = new OpenFileDialog();
if (openFileDialog.ShowDialog() == DialogResult.OK)
{
string templateName = openFileDialog.FileName;
textBox1.Text = templateName;
}
}


![[ React 筆記 ] input使用useRef存取子元件](https://static.coderbridge.com/images/covers/default-post-cover-2.jpg)
