private void btnSelectIO_Click(object sender, EventArgs e) { if (string.IsNullOrEmpty(openIO.InitialDirectory)) openIO.InitialDirectory = Application.StartupPath; if (openIO.ShowDialog() == DialogResult.OK) { txtFile.Text = openIO.FileName; } }