I'm using the following code to place a child form on the taskbar
procedure TfrmTemplate.CreateParams(var Params: TCreateParams);
Params.WndParent := 0;
However whenever a dialog box is shown focus is set to the application main form. When the dialog box is closed focus returns to the child form. Is there any way around this.