标签:xls filename return code dialog ogre dir ogr index
SaveFileDialog sfd = new SaveFileDialog(); sfd.Filter = "Excel表格(*.xlsx)|*.xlsx"; sfd.FilterIndex = 1; sfd.RestoreDirectory = true; if (sfd.ShowDialog() == DialogResult.OK) { MessageBox.Show(sfd.FileName.ToString()); } else { MessageBox.Show("取消保存"); return; }
标签:xls filename return code dialog ogre dir ogr index
原文地址:https://www.cnblogs.com/yinmu/p/11525518.html