-1
Good afternoon, I’m doing a quiz on Windows Form,:
Async void Proximo()
{
await Task.Delay(100);
this.Close();
Form2 form = new Form2;
form.Show();
}
private void button1_Click(object sender , EventArgs e)
{
Proximo() ;
}
Only if I give a double/triple...click, will open two/three times the same form.How do I solve this? Even giving a triple click open only a single form?
should not use async just to open another form, minus a delay to delay something... you can also use Showdialog that makes the form open in a restricted way and return a Dialogresult...
– Rovann Linhalis