Click here to Skip to main content
16,017,954 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Dear All,
I need to know that click event is complete in .net application when button is clicked and raised from that button , then event is fired but if we click the button and then instantaneously we move that button to different Button then which button event will fire.Is the event of first button which is clicked is fired or the second on which the is placed.

Confusing but interesting. Kindly help me. :doh:
Posted
Comments
Henry Minute 10-Dec-10 15:28pm    
What does "instantaneously we move that button to different Button" mean? It makes no sense to me. If you edit your question (click the 'Improve question' widget, bottom tight of your question) to clarify that, you might get more response. :)
Dave Kreskowiak 10-Dec-10 16:13pm    
We have no freakin' clue what you're talking about. I would suggest stepping back and rewriting the question.

1 solution

You could simply test it and know if it is possible.

But if I understand it correctly your idea is to change the event to another event at the same time the button is clicked. This won't work. The reason for that is because the UI is a single thread and all operations are handled sequential.

You could do something like this by changing the event of a button using the mouseenter event because this event would fire before the click can be fired.

It remains unclear what use you could have for this. Like Henry and Dave (and yourself included ;)) it is pretty confusing and vague but hopefully this answers your question.

Good luck!
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900