Close(); } private void textBox1_Validating(object sender, CancelEventArgs e) { try { IPAddress.Parse(textBox1.Text); } catch (Exception) { e.Cancel = true; } } private void textBox2_Validating(object sender, CancelEventArgs e) { try { int.Parse(textBox2.Text); } catch (Exception) { e.Cancel = true; } } private void textBox3_Validating(object sender, CancelEventArgs e) { try { short.Parse(textBox3.Text); } catch (Exception) { e.Cancel = true; } } internal void RemoveClipboardHandler() {