private void browseButton_Click(object sender, RoutedEventArgs e) { //this.openFileDialog1.InitialDirectory = myComputer.FileSystem.SpecialDirectories.MyDocuments; using (System.Windows.Forms.OpenFileDialog openFileDialog1 = new System.Windows.Forms.OpenFileDialog()) { openFileDialog1.FileName = ""; openFileDialog1.RestoreDirectory = true; openFileDialog1.Filter = "All Files|*.*"; openFileDialog1.FilterIndex = 1; openFileDialog1.Title = "Select a File to Attach"; if (openFileDialog1.ShowDialog() == System.Windows.Forms.DialogResult.OK) { string orgnlFileName = openFileDialog1.FileName; string baseNm = System.IO.Path.GetFileName(openFileDialog1.FileName); if (this.attchMntsTextBox.Text == "") { this.attchMntsTextBox.Text = baseNm; } else { this.attchMntsTextBox.AppendText(";" + baseNm); } if (cmnCde.myComputer.FileSystem.FileExists(orgnlFileName) == true) { if (cmnCde.copyAFileSpcl(cmnCde.getRptDrctry() + "\\mail_attachments", orgnlFileName) == true) { //DO Nothing } } } } }