private void rutaBT_Click(object sender, EventArgs e) { FileDialogRuta.InitialDirectory = "c:\\"; FileDialogRuta.FilterIndex = 1; FileDialogRuta.RestoreDirectory = true; if (FileDialogRuta.ShowDialog() == DialogResult.OK) { rutaTB.Text = FileDialogRuta.FileName; } }
private void btRuta_Click(object sender, EventArgs e) { FileDialogRuta.InitialDirectory = Application.StartupPath + "\\EDI"; FileDialogRuta.FilterIndex = 1; FileDialogRuta.RestoreDirectory = true; if (FileDialogRuta.ShowDialog() == DialogResult.OK) { tbRuta.Text = FileDialogRuta.FileName; } }