Mega Code Archive

 
Categories / Delphi / Forms
 

How to keep a form always in the background

Title: How to keep a form always in the background protected procedure CreateParams(var Params: TCreateParams); override; //... procedure TForm.CreateParams(var Params: TCreateParams); begin inherited CreateParams(Params); if Assigned(Application.MainForm) then begin Params.WndParent := GetDesktopWindow; Params.Style := WS_CHILD; end; end;