string excelFile; if (oFD.ShowDialog() == DialogResult.OK) if ((excelFile = oFD.FileName) != null) DelFwn(excelFile);