Jump to content
Registration disabled at the moment Read more... ×
Ian Branch

Give a form its own icon on its task bar button?

Recommended Posts

Hi Team,

I can make a form have it's own button on the Windows Task Bar using the following..

...
  protected
    procedure CreateParams(var Params: TCreateParams); override;
...
...
procedure TAudioForm.CreateParams(var Params: TCreateParams);
begin
  inherited;
  Params.ExStyle := Params.ExStyle or WS_EX_APPWINDOW;
  Params.WndParent := 0;
end;

All good, however, it uses the Main App/Form Icon.

Is there any way to inject a different icon? 

Regards & TIA,

Ian

Share this post


Link to post

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×