9 - Try catch Finally Örnekler

         private void button1_Click(object sender, EventArgs e)

        {

            try

            {

                  int a = Convert.ToInt16(textBox1.Text);


            }

            catch (Exception)

            {

                MessageBox.Show("Hatalı giriş");

            }


        }

Yorumlar

Bu blogdaki popüler yayınlar

14 - Dizi Oluşturma, Değer Atama

12 - Bir Boyutlu Diziler - Çalışma Soruları

27 - Koleksiyonlar: ArrayList()