1

In a windowed programming environment, a user may click a button more than once if they do not immediately see something happen.

How do you stop the code behind the button being executed more than once in this situation?

CJ7
  • 22,579
  • 65
  • 193
  • 321
  • Have you tried to disable the button as the first action that occurs when het user clicks the button? (And of course the last action of the button-click should be to enable the button again.) – Geert Immerzeel Aug 17 '10 at 10:03

2 Answers2

1

You can disable the button until the action is complete

Thomas Levesque
  • 286,951
  • 70
  • 623
  • 758
0

In addition to disabling the button, a wait cursor will visually help the user to see that something is happening.

msergeant
  • 4,771
  • 3
  • 25
  • 26