... // At the top of the Main Program STATIC oTray // After the Main function some where before Main Window Activate oTray := TTrayIcon():New(oWnd,"Mydll.DLL",10,"MyProg"+K_CRLF+'Right Click for Menu',.T.,{||oWnd:Show()},{|nRow,nCol|MenuTray(nRow,nCol,oTray)}) // Then when you Activate the Main ...