Anuya
Anuya

Reputation: 8350

What are the ways to restrict the User to click a button more than once in Windows c# application?

What are the ways to restrict the User to click a button more than once in Windows c# application ? I dont want them to click more than once, which leads to a problem.

Can i change the make the cursor invisible after clicking once or any cother can be done ?

Upvotes: 0

Views: 188

Answers (2)

ggg
ggg

Reputation: 1723

  1. (best option) Fix your code so there's no problem.
  2. Disable the button when you get the first click event.

Upvotes: 5

ankitjaininfo
ankitjaininfo

Reputation: 12372

Disable the button on the click event. No more click events will be generated.

Upvotes: 5

Related Questions