تبلیغات
try
            {
                for (int j = 0; j < 11; j++)
                {
                    a[j] = 10;
                }
            }
            catch (IndexOutOfRangeException)
            {
                label1.Text = "out of rang";
            }
            finally
            {
                timer1.Interval = 2000;
                timer1.Start();
            }