public void GotoEID() { if (tbcTabs.SelectedTab != null) { NSFBox nsfbox = (NSFBox)tbcTabs.SelectedTab.Tag; using (InputWindow inputwindow = new InputWindow()) { if (inputwindow.ShowDialog() == DialogResult.OK) { try { nsfbox.GotoEID((int)uint.Parse(inputwindow.Input, NumberStyles.HexNumber)); } catch (FormatException) { MessageBox.Show("Invalid EID.\nMust be specified in hexadecmical without leading '0x' or trailing 'h'.", "Goto EID", MessageBoxButtons.OK, MessageBoxIcon.Error); } catch (OverflowException) { MessageBox.Show("Invalid EID.\nMust be in range 0 to FFFFFFFF", "Goto EID", MessageBoxButtons.OK, MessageBoxIcon.Error); } } } } }