選擇文件 c#
[codes=C#] private void btn_select_Click(object sender, EventArgs e)
{
OpenFileDialog fdlg = new OpenFileDialog();
fdlg.Filter = "All files (*.xls)|*.xls|All files (*.xls)|*.xls";
fdlg.FilterIndex = 2;
if (fdlg.ShowDialog() == DialogResult.OK)
{
txt_file_path.Text = fdlg.FileName;
}
}[/codes]
{
OpenFileDialog fdlg = new OpenFileDialog();
fdlg.Filter = "All files (*.xls)|*.xls|All files (*.xls)|*.xls";
fdlg.FilterIndex = 2;
if (fdlg.ShowDialog() == DialogResult.OK)
{
txt_file_path.Text = fdlg.FileName;
}
}[/codes]
大公司的PHP面试题
谢亚龙下课
