ACTIVE-FORM system reference
- Last Updated: January 18, 2024
- 2 minute read
- OpenEdge
- Version 12.8
- Documentation
(Windows only; GUI for .NET)
An object reference to the last .NET form or ABL window to receive focus. The object reference returned by ACTIVE-FORM has the OpenEdge .NET Progress.Windows.IForm interface type.
Syntax
|
Notes
- ACTIVE-FORM
references instances of any class that ABL recognizes as a form,
including the following form classes:
- Progress.Windows.Form class — A custom OpenEdge .NET
form class that encapsulates a .NET
System.Windows.Forms.Formfor use within an ABL session. If a .NET form is last to receive focus and you use theProgress.Windows.Formclass to instantiate all .NET forms, ACTIVE-FORM references the affectedProgress.Windows.Forminstance. - Progress.Windows.FormProxy class — An OpenEdge .NET form class that
is associated with each ABL window instantiated in any ABL session that references
.NET objects. If an ABL window is last to receive focus, ACTIVE-FORM references the
Progress.Windows.FormProxyobject associated with the affected window.
- Progress.Windows.Form class — A custom OpenEdge .NET
form class that encapsulates a .NET
- If the last ABL window to receive focus is the default window, ACTIVE-FORM
returns the Unknown value (
?), because ABL does not create aFormProxyobject for the default window. - You cannot use ACTIVE-FORM if the window with focus is not a
Progress.Windows.Formor a native ABL window. If you directly instantiate .NET forms usingSystem.Windows.Forms.Form(or any other native .NET form class), you must use the .NETActiveFormproperty to identify the native .NET form instance that has focus.Progress.Windows.Formalso inherits theActiveFormproperty fromSystem.Windows.Forms.Form, and this property also references the .NET native form instance that a givenProgress.Windows.Formobject represents. However,Progress.Windows.FormProxydoes not inherit theActiveFormproperty and does not provide a meaningful reference when an ABL window has focus.
See also
ACTIVE-WINDOW system handle, Progress.Windows.Form class, Progress.Windows.FormProxy class