在StripStatus的ITEMS属性中添加一个toolStripStatusLabel控件
源码:
private void timer1_Tick(object sender, EventArgs e)
{
toolStripStatusLabel1.Text= DateTime.Now.ToLongTimeString();
statusStrip1.Refresh();
}
private void Form1_Load(object sender, EventArgs e)
{
timer1.Enabled = true;
timer1.Interval = 1000;
}