Jump to content
Mark Billig

Start application in system tray

Recommended Posts

9 minutes ago, Mark Billig said:

Is there a way to start an application in the system tray?

Yes.. use a TTrayIcon component and set Application.ShowMainForm to False

Share this post


Link to post

I am using 11.3 and have tried that but it did not start in the system tray.  I will do more testing.

Share this post


Link to post
3 minutes ago, Mark Billig said:

I am using 11.3 and have tried that but it did not start in the system tray.

Please show your code. Also remember that the Visible property on TTrayIcon needs to be set to True

Share this post


Link to post
10 minutes ago, Mark Billig said:

I have attached the code.

Two problems:

 

You have -

Application.MainFormOnTaskbar := False;

Instead of - 

Application.ShowMainForm := False;

..and you have not assigned anything to the Icon property in the TTrayIcon component, which means it shows as a blank area, rather than a visible icon
 

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

×