[SOLVED] Lazarus apps launched from RDP are not visible in TaskBar lazarus / 34-Windows ---------------------------------------------------------------------- marclebrun · 2022-04-27 13:25 Hi, This is mainly a Lazarus issue but it also applies to Remote Desktop on a Windows server. We have a app called "Menu", it has buttons that launch other applications, some of them being written in Lazarus, and others in WinDev. Everything is working very well when used on a local computer or in a remote desktop environment. Our IT department made a ".rdp" file which starts our "Menu" application stored in the remote desktop, and the application appears in a local window, instead of being on the full remote desktop. The problem is the following: the "Menu" application's taskbar icon is visible, but the applications that are started from the Menu are not visible : the ones that are written in WinDev show their taskbar icon, and the ones that are written in Lazarus do not show their taskbar icon. Also, using Alt+Tab on the keyboard, we do not see them in the miniatures. But when I minimize an application, then its icon suddenly appears on the TaskBar ! The projects are compiled with Lazarus 2.0.12. The projects use the default icons, I didn't change anything there. I also checked that the property ShowInTaskBar of the main form is on stDefault It tried with a newly created application, an empty form, without changing any parameter, and the result is the same, so it is not caused by something weird in my other applications  Hopefully someone here has already encountered this problem before ? If so, would you be so kind to guide me in the correct way to solve this ? Thanks. ---------------------------------------------------------------------- PascalDragon · 2022-04-28 06:56 Quote from: marclebrun on April 27, 2022, 03:25:22 pmIf so, would you be so kind to guide me in the correct way to solve this ? Would you please check whether setting Application.MainFormOnTaskBar to either True or False (I think default is False) right after the Application.Initialize in the main program file makes any difference for you? ---------------------------------------------------------------------- marclebrun · 2022-04-29 06:45 WOAW THIS IS WONDERFUL ! I think you just saved my life !!!  After so many years using Lazarus I didn't even know this property  I'm adding Code: Pascal  [Select][+][-]window.onload = function(){var x1 = document.getElementById("main_content_section"); if (x1) { var x = document.getElementsByClassName("geshi");for (var i = 0; i Application.MainFormOnTaskBar := True; in all my applications and it works. Thank you soooo much ---------------------------------------------------------------------- PascalDragon · 2022-05-02 11:31 Quote from: marclebrun on April 29, 2022, 08:45:39 amThank you soooo much  You're welcome. I had a feeling that this was the problem cause that (or something similar) is the main reason behind that property (and there are reasons for both behaviours, that's why it's a property).