Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- int val;
- if (textBox1.Text=="haslo")
- {
- MessageBox.Show("Jest hasłem!");
- }
- else if (Int32.TryParse(textBox1.Text, out val)){
- int liczba = val;
- label1.Text = ""+liczba+"";
- MessageBox.Show("To jest liczba!");
- }
- else
- {
- MessageBox.Show("jest tekstem!");
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement