3
Answers

if condition for button click??

Rajavel G

Rajavel G

8y
484
1
c# and vb code for How to check the button was clicked??
Answers (3)
1
Dilip Gupta

Dilip Gupta

NA 348 45 8y
try   like this
 
private bool btAddClicked = false;
private void btAdd_Click(object sender, EventArgs e)
{
btAddClicked = true;
}
then check  btAddClicked
Accepted
0
Nitin Sontakke

Nitin Sontakke

NA 11.7k 2.2k 8y
We typically code inside the event itself. 
 
If you could just elaborate a bit about the business problem you are trying to solve, please.
 
0
Srikanth Reddy

Srikanth Reddy

NA 1.7k 168.4k 8y
If it's related event was fired we can that its event was fired. 
Can you explain your need exactly so that we can elaborate our answer more.
Are you expecting any thing to happen on button click ?