To handle input for .NET forms and ABL windows together in an ABL application, ABL supports two basic mechanisms that work with both forms and windows in common:
A common WAIT-FOR statement syntax that can handle general event processing for both forms and windows, as well as ABL non-GUI events
An ACTIVE-FORM system reference to detect input focus for both forms and windows