Advertisement
Guest User

Untitled

a guest
Dec 13th, 2020
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.35 KB | None | 0 0
  1. private void textBox1_TextChanged(object sender, EventArgs e) {
  2.             try {
  3.                 int szam = Convert.ToInt32(textBox1.Text);
  4.             } catch(Exception ex) {
  5.                 if (textBox1.Text != "") {
  6.                     MessageBox.Show("Hibaüzenet");
  7.                 }
  8.                 textBox1.Text = "";
  9.             }
  10.         }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement