        private void button1_Click(object sender, EventArgs e)
        {
           label1.Text = "Main thread starting.\n";
           // First, construct a MyThread object.
           MyThread mt = new MyThread("Thred #1");
           // Next, construct a thread from that object.
           Thread newThrd = new Thread(new ThreadStart(mt.run));
           // Finally, start execution of the thread.
           newThrd.Start();
           do {
             Thread.Sleep(10);
           } while (mt.count != 10);
           label1.Text += mt.s;
           label1.Text += "\n Main thread ending.";
        }
