How can I update the value of a Label control periodically?

前端 未结 4 2007
别跟我提以往
别跟我提以往 2021-01-29 05:53

I\'m trying to make a label display some text, and then after a short while refresh itself and be able to re-display something else later. At the moment however I don\'t know ho

4条回答
  •  广开言路
    2021-01-29 06:16

    I used a timer.

    private void timer1_Tick(object sender, EventArgs e)
    {        
          labelWarningMessage.Text = "";
          labelWARNING.Visible = false;
    }
    

提交回复
热议问题