Hello..
I've got a big problem...
On a form, i have a button called Delete
If i press delete this code runs:
The product is removed (that works).
Than i wait...
Then the code of the button txtReset_Click is runned...
But the last one doestn't do anything...
Also not if i copy and past the code to here...
If i run the program, and after i pushed on Delete, and then on txtReset it works well..
What is wrong????????????
I've got a big problem...
On a form, i have a button called Delete
If i press delete this code runs:
Code:
private void btnWissen_Click(object sender, EventArgs e)
//Verwijderen!!
{
product.verwijderen(Convert.ToInt16(txtID.Text));
System.Windows.Forms.Application.DoEvents();
txtReset_Click(sender, e);
}
The product is removed (that works).
Than i wait...
Then the code of the button txtReset_Click is runned...
But the last one doestn't do anything...
Also not if i copy and past the code to here...
If i run the program, and after i pushed on Delete, and then on txtReset it works well..
What is wrong????????????