private void btnBrowseVariableFile_Click(object sender, EventArgs e) { if (ofdVariablesFile.ShowDialog() == System.Windows.Forms.DialogResult.OK) { txtVariableFilePath.Text = ofdVariablesFile.FileName; txtVariableFilePath.Focus(); } }