Detecting events

Jan 31 2013 12:28 PM
Hi there... Please, help me with this question. How can I detect which event fires the Leave() event of a control, for example if the Leave() event was fired by Tab key down or mouseClick. is there a way for get that information. I need to execute some code in the Leave() event but there is some code to do if the event was fired by Tab key, and another code if the event was fired by Shift+Tab key combination

Thanks in advance