Ok, let me think this through ... when the mainform is minimized, the childform will popup and steal the focus (expected) but when its dimissed, instead of setting focus back to the "active task" on the desktop, it presumably set focus to the mainform ...