Author Topic: Running Executable in the System Tray  (Read 832 times)

pbeler1

  • Newbie
  • *
  • Posts: 1
    • View Profile
Running Executable in the System Tray
« on: April 05, 2019, 02:11:46 PM »
Hello,

I'm using the sample project "KeepingRecordsFromCLXToExcelFile." It works perfectly, but I'd like to be able to hide the screen so that it essentially runs invisible for my operators. This way, it will just monitor for a data change in the PLC and update my excel file accordingly, and I don't have to worry about someone closing out the application. I think running it in the system tray would work fine, but I'm not sure how to accomplish this without 3rd party software.

I'm brand new to AdvancedHMI, so apologies in advance if there's a simpler way to do this.

Thanks

Archie

  • Administrator
  • Hero Member
  • *****
  • Posts: 5317
    • View Profile
    • AdvancedHMI
Re: Running Executable in the System Tray
« Reply #1 on: April 05, 2019, 02:48:25 PM »
My solution to keeping someone from exiting the application is to set the FormBorderStyle to None and sometime setting WindowState to Minimized. You could also set ShowInTaskBar to False, but then you have not way to exit the program except with Task Manager or a reboot.

Phrog30

  • Guest
Re: Running Executable in the System Tray
« Reply #2 on: April 05, 2019, 03:10:03 PM »
You could also run as a service.  There are 3rd party utilities that make this easy.  Some of them even have persistence, meaning, if the service stops it will try and restart it.