So what i want to make is that when you click a button it waits a certain time then shows a messagebox. I am using windows forms apps so yeah will appreciate if you help me.
private void button1_Click(object sender, EventArgs e)
{
MessageBox.Show("Example");
}
}
}
Edit: What i did was:
private async void button1_Click(object sender, EventArgs e)
{
await Task.Delay(Amount of milliseconds here);
MessageBox.Show("Example");
}