我正在尝试在 2 秒内将工具条状态中的文本从一条消息更改为另一条消息。为什么我不能像下面那样做?
toolStripStatusLabel1.Text = "Cool";
Thread.Sleep(2000);
toolStripStatusLabel1.Text = "Status: IP Address update complete";
我试过了,但它只显示第二条消息。为什么它在 2 秒内不显示第一条消息?
我正在尝试在 2 秒内将工具条状态中的文本从一条消息更改为另一条消息。为什么我不能像下面那样做?
toolStripStatusLabel1.Text = "Cool";
Thread.Sleep(2000);
toolStripStatusLabel1.Text = "Status: IP Address update complete";
我试过了,但它只显示第二条消息。为什么它在 2 秒内不显示第一条消息?