Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Disable second mouse click
Message
 
 
To
13/08/2003 19:33:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00819984
Message ID:
00820017
Views:
14
Bonnie,

The simplest thing to do is something like this:
* cmd.Click
this.Enabled = .f.
* do the thing that takes forever
this.Enabled = .t.
this will prevent the users from clicking it twice. You might also want to give them some progress display to let them know that the process is proceeding.

>I have a command button on a form and my users are double clicking on it instead of the standard one click. The form executes some actions because of the second click and I want to disable this. Is there a way to throw out the second mouse click when it is pressed on a command button?
df (was a 10 time MVP)

df FoxPro website
FoxPro Wiki site online, editable knowledgebase
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform