MDIActive: IFormControl;
The MDIActive property determines the MDI child form that is active at the given moment.
Executing the example requires a form and a button named Button1 positioned on it. This form is a MDI parent form that contains several child ones.
Sub Button1OnClick(Sender: Object; Args: IMouseEventArgs);
Begin
Self.MDIActive := Self.MDIChildren(0);
End Sub Button1OnClick;
After executing the example pressing the button activates the first child form.
See also: