Jump to content
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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×