using System;
using System.Windows.Forms;

namespace _ex_11_2
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void timer1_Tick(object sender, EventArgs e)
        {
            this.Text = DateTime.Now.ToLongTimeString();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            this.Text = string.Empty;
            //-------------------------
            timer1.Interval = 1000;
            timer1.Start();
        }
    }
}