摘要:
private void btnSelectFile_Click(object sender, EventArgs e) { //打开文件对话框。 OpenFileDialog openFile = new OpenFileDialog(); //后缀名。 openFile.Filter = "Excel文件(*.xls,*.xlsx)|*.xls;*.xlsx"; if (openFile.ShowDialog() == DialogResult.OK) ... 阅读全文