Jump to content
Registration disabled at the moment Read more... ×
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

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

×