StrataFrame Forum
Back
Login
Login
Home
»
.NET Forums
»
General .NET Discussion
»
Command button Click event firing twice when user double click it.
Command button Click event firing twice when user double click it.
Post Reply
Like
2
Command button Click event firing twice when user double click it.
View
Flat Ascending
Flat Descending
Threaded
Options
Subscribe to topic
Print This Topic
RSS Feed
Goto Topics Forum
Author
Message
Edhy Rijo
E
Edhy Rijo
posted 15 Years Ago
ANSWER
Topic Details
Share Topic
E
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
Hi guys,
I am having a situation where some users are double clicking a command button and its Click() event is being fired twice, is there a way to prevent this?
I have done some research in Google but could not find an easy solution, other than creating a timer to handle the click.
Thanks!
Edhy Rijo
Reply
Like
2
Replies
Ivan George Borges
Ivan George Borges
posted 15 Years Ago
ANSWER
Post Details
Share Post
Group: StrataFrame MVPs
Posts: 1.9K,
Visits: 21K
Nope, never thought of it. But it does make sense it runs twice, since the user clicked the thing twice.
I think we could put a message "Can you please give the application some time to do its job?!" to the user, and of course, use the Localization and Messaging Editor to create a key to this message, so we do it in all languages possible.
Reply
Like
2
Edhy Rijo
E
Edhy Rijo
posted 15 Years Ago
ANSWER
Post Details
Share Post
E
Group: StrataFrame Users
Posts: 2.4K,
Visits: 23K
Well, you should have seen my face when I got the call from the user reporting that my process was running twice
At least I have only get one call on this specific process, so for now fixing this button will be enough. Hmmm, never got that complaint using Visual FoxPro
but did get others
Edhy Rijo
Reply
Like
2
GO
Merge Selected
Merge into selected topic...
Merge into merge target...
Merge into a specific topic ID...
Open Merge
Threaded View
Threaded View
Command button Click event firing twice when user double click it.
Edhy Rijo
-
15 Years Ago
Hi Edhy. Would disable the button once it enters the Click event...
Ivan George Borges
-
15 Years Ago
Hi Ivan, Thanks for the prompt response. Yes that does the trick even...
Edhy Rijo
-
15 Years Ago
Nope, never thought of it. But it does make sense it runs twice, since...
Ivan George Borges
-
15 Years Ago
Well, you should have seen my face when I got the call from the user...
Edhy Rijo
-
15 Years Ago
Hello Edhy. I know if FoxPro I often run into problems with people,...
Russell Scott Brown
-
15 Years Ago
[quote][b]Russell Scott Brown (11/19/2010)[/b][hr]I know if FoxPro I...
Edhy Rijo
-
15 Years Ago
Now that I gave it some more thinking, I do have some buttons that...
Ivan George Borges
-
15 Years Ago
Here's some info on how the click/double-click events play together:...
Greg McGuffey
-
15 Years Ago
Thanks Greg, very good information about those events.
Edhy Rijo
-
15 Years Ago
Post Reply
Like
2
Similar Topics
Post Quoted Reply
Reading This Topic
Login
Login
Remember Me
Reset Password
Resend Validation Email
Login
Explore
Messages
Mentions
Search