identify current active window

From the Form.ActiveForm Property (shared).

If you meant other applications you have to use Win32 API methods, for example GetForegroundWindow returns the window handle.
 
Back
Top