how to display a message box when timer elapses in c#

前端 未结 1 1094
无人共我
无人共我 2021-01-29 02:00

I gave my time interval as 100. when the timer elapsed the message box is displayed but my screen is flooded with message boxes. How should i stop it with one message box indica

1条回答
  •  慢半拍i
    慢半拍i (楼主)
    2021-01-29 02:40

    I guess (as you don't provide code), in the Interrupt Service Routine:

    public void YourTimer_Tick(object sender, EventArgs e)
    {
          YourTimer.Stop();
          MessageBox.Show("You message...");
    }
    

    0 讨论(0)
提交回复
热议问题