The BeforeActivate event occurs when a window is activated. It occurs before the Microsoft Dynamics GP window activate event.
• window – A window object.
A window is activated when it’s moved from the background to the foreground in an application, becoming the frontmost window.
Microsoft Dynamics GP rarely uses the window activate event. Whether you choose to use the AfterActivate event or BeforeActivate event is of little consequence.