<public void="" mode="hold" /> { string newFilePath = string.Empty; saveFileDialog1 = new SaveFileDialog(); saveFileDialog1.FileName ="filename1"; saveFileDialog1.Filter = " "; if (saveFileDialog1.ShowDialog() == DialogResult.OK) { //here i will have new path } string oldFilePath = userControl1.IFilePath; if (System.IO.File.Exists(oldFilePath)) { //old path } } userControl in Windows application void SaveFile() { Form a = new Form(); a.savebtn(); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)