If you call Appliction.DoEv ents() before enabling button app will work as you intended.
Reason clicks get through is they pile up in messages queue, which is processed after your method ends, and button is enabled by that time. Processing messages queue before enabling button solves it.
Leave a comment: