现在启动程序后无法看到窗口,只能在进程中看到。 using System.Diagnostics; Process p = new Process(); 
p.StartInfo.FileName = @"d:\a.exe"; 
p.Start(); 

解决方案 »

  1.   

    参考
    http://www.cnblogs.com/nbwzy/archive/2008/09/24/732917.html
    http://www.cnblogs.com/adam/archive/2007/02/28/659318.html
      

  2.   

    Dirty workaround in XP: 
    1. Start -> Run -> services.msc, 
    2. Right click your service, 
    3. select property, 
    4. select logon, 
    5. check "Allow Service to interact with desktop".
    In Vista (also a better solution): 
    1. Steal a token from the current interactive user,
    2. Spawn the process by CreateProcessAsUser() API
      

  3.   

    WEBCAST有这样的课程 好像是.net windows编程,你可以下载看看
      

  4.   

       无法看到窗口.  设置WINDOWS服务与桌面交互. 
      

  5.   

    只要在管理工具的服务列表里找到你写的服务修改它的属性里的登录页里的打上“允许服务与桌面交互”的勾就行了,这样连message.show都能出来