;Bitte vorher ein Icon im Compiler-Einstellungsfenster auswählen EnableExplicit If OpenWindow(0, 0, 0, 500, 400, "Window", #PB_Window_SystemMenu | #PB_Window_ScreenCentered) AddSysTrayIcon(1, WindowID(0), GetClassLongPtr_(WindowID(0), #GCL_HICON)) SysTrayIconToolTip(1, "My Application") Repeat Until WaitWindowEvent() = #PB_Event_CloseWindow EndIf