I'm developing a windows form application in C# and (SOMETIME) every button in the form need to be clicked twice to fire an event.
Can anybody suggest a solution?
Best Regards, BaDoOoReY
I'm developing a windows form application in C# and (SOMETIME) every button in the form need to be clicked twice to fire an event.
Can anybody suggest a solution?
Best Regards, BaDoOoReY
I think roundtrip is not happening some times because of any ajax control or javascript.If you use any of these two please check this may stops events to fire server side some times.
You can create a puplic variable with 0 value.
When the user click the button for the first time you give the varriable value 1.
When the user click the button for the second time you give the varriable value 2.
and you make if statement to check if the varriable is equal 2, this mean that the button clicked twice, if true you can fire your event.
Also you can you use button double_cilck event.