Hi, I've two form and I would place the two windows one above the other.
Form to be in foreground = FormFG
Form to be under the FormFG = FormBG
when the user click or activate by tab the FormFG or the FormBG the form must be showed with the FormFG on top and under this the FormBG.
In my sample code I solved this but the FormBG are activated and showed before the FormFG.
Procedure TfrmFormFG.WMNCActivate(Var AMsg: TWMNCActivate);
If AMsg.Active Then Begin