Mega Code Archive

 
Categories / Delphi / Forms
 

Form as Application

Title: Form as Application Question: How i can create a form and this form stay in another icon in task bar ? (How a new aplication). Answer: It's easy. In private clause: type TForm1 = class(TForm) private { Private declarations } procedure CreateParams(var Params: TCreateParams); Override; And, in the implementation: procedure TForm1.CreateParams(var Params: TCreateParams); begin inherited CreateParams(Params); with params do ExStyle := ExStyle or WS_EX_APPWINDOW; end;