Hello,
With C# winforms, I try to create a small application, and I try to deactivate a button after clicking on it.
To disable the button, I use the following line:
- button.Enabled = false;
but I realize that the button is grayed out but not disabled because when I click on it, it starts processing again.
How to actually disable a button under C# winforms?
Thanks.

Balamurugan Rajaraman4 reputationPosted Jul 11, 2020, 3:02 AM EDT
Rajanikant HawaldarRank #110 · 20.2K reputationPosted Jul 11, 2020, 3:38 AM EDT
Ajit Kulageri148 reputationPosted Jul 11, 2020, 10:21 PM EDT
Ashutosh GuptaRank #805 · 2.9K reputationPosted Jul 12, 2020, 6:29 AM EDT