private void btnFolder_Click(object sender, EventArgs e)
 {
     lbFileError.Text = "";
     FolderBrowserDialog dialog = new FolderBrowserDialog();
     dialog.ShowDialog();
     string selected = dialog.SelectedPath;
     //txtFilePath.Text = selected;
     //txtFolderPath.Text = selected;
     if (selected != "")
     {
         Global.folPath = selected;
         TextFileName frm = new TextFileName();
         frm.ShowDialog();
         if ((Global.fileDateFormat == "" || Global.fileTypeRead == "") && Global.filename=="")
             txtFilePath.Text = "";
         else
             txtFilePath.Text = selected;
     }
 }
 private void btnUpSett_Click(object sender, EventArgs e)
 {
     TextFileName frm = new TextFileName();
     frm.ShowDialog();
 }