I have this windows form, timer1
is enabled and it's interval is set to 2000 ms.
why the form shows a message box every 2 second? I mean when the first time timer tick called the UI thread will wait until the OK button pressed, so if I don't push the button so there should not another message box appear. but it appears! why?
I know that timer works on it's own thread, and the timer invokes the timer_tick function on it's intervals, the question is how another messagebox is shown when UI thread is blocked on mbox.show()?
public partial class Form1 : Form
{
public Form1()
{
InitializeComponent();
}
private void timer1_Tick(object sender, EventArgs e)
{
MessageBox.Show("test");
}
}