Show a message box from a Windows Service

前端 未结 6 878
-上瘾入骨i
-上瘾入骨i 2020-12-06 00:48

Can you display a message box (or any form of notification) from a windows service? Can\'t get it to work. I used:

            global::System.Windows.Forms.M         


        
6条回答
  •  鱼传尺愫
    2020-12-06 01:06

    OS:XP Enabling Interactive Mode for Windows Services

    Procedure

    1. Open the Services control panel. For example: Start > Control Panel > Administrative Tools > Services.
    2. Select the Cast Iron Secure Connector service.
    3. Right-click the service name, and select Properties. The Service Properties window is displayed.
    4. Select the Log On tab.
    5. Select Local System account and then select Allow service to interact with desktop.
    6. Click OK.
    7. Click Restart.

提交回复
热议问题