private void btnBrowse_Click(object sender, EventArgs e) { odDatabase.FileName = lbDatabase.Text; if (odDatabase.ShowDialog() == DialogResult.OK) { // // Check to see if the database is valid, if not, then don't // accept the selection. if (GPDatabaseUtils.ValidateDatabase(odDatabase.FileName)) { lbDatabase.Text = odDatabase.FileName; } else { String msg = "The selected database is not compatible with this version of "; msg += "the GP Studio software. Please select another database."; MessageBox.Show(msg, GPEnums.APPLICATON_NAME, MessageBoxButtons.OK); } } }