private void BdfImporter_Shown(object sender, EventArgs e) { if (openFileDialog.ShowDialog() != System.Windows.Forms.DialogResult.OK) { this.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.Close(); return; } try { BdfFont = new BdfFont(openFileDialog.FileName); } catch (Exception f) { this.DialogResult = System.Windows.Forms.DialogResult.Cancel; Close(); MessageBox.Show("Error: " + f.ToString(), "Error Importing Font", MessageBoxButtons.OK, MessageBoxIcon.Error); return; } Browser.Show(); }