private void ManagedThreadExceptionButton_Click(object sender, System.EventArgs e)
        {
            ErrorExamples y = new ErrorExamples();

            Thread t = new Thread(
                new ThreadStart(y.IntDivideByZero));

            t.Start();
            t.Join();
        }
        private void DivideByZeroButton_Click(object sender, System.EventArgs e)
        {
            ErrorExamples ex = new ErrorExamples();

            ex.IntDivideByZero();
        }