How to tell when a VB app is switched to from another application or after being minimised
Posted on 2004-08-04
I need to determine when my VB app regains focus after it has been switched to from another application (ALT+TAB) or restored after it has been minimised.
The form_gotfocus event isn't firedwhen this occurs. The main control (infragistics data explorer)'s gotfocus event is fired, but is fired too often (whenever the user moves between the three panes on the form) and there is no way to distinguish between that and the aforementioned situation.
Does anyone know of a way i can achieve this (maybe through Windows API)?
Thanks in advance,