Application object in a windows services project

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Mark

    #1

    Application object in a windows services project

    I just discovered that the Application object is not available in the Windows service application. Is there any way to access properties such as StartupPath in Windows service application?

    Thanks in advance.

    Majid
  • Stephany Young

    #2
    Re: Application object in a windows services project

    Simply add a reference to System.Windows. Forms.


    "Mark" <mark@dynatechs olution.comwrot e in message
    news:ucZX8ZtoGH A.3452@TK2MSFTN GP05.phx.gbl...
    I just discovered that the Application object is not available in the
    Windows service application. Is there any way to access properties such as
    StartupPath in Windows service application?

    Thanks in advance.

    Majid


    Comment

    • Mark

      #3
      Re: Application object in a windows services project

      Thanks a lot.



      "Stephany Young" <noone@localhos twrote in message
      news:%23T6%23Om toGHA.4192@TK2M SFTNGP03.phx.gb l...
      Simply add a reference to System.Windows. Forms.
      >
      >
      "Mark" <mark@dynatechs olution.comwrot e in message
      news:ucZX8ZtoGH A.3452@TK2MSFTN GP05.phx.gbl...
      I just discovered that the Application object is not available in the
      Windows service application. Is there any way to access properties such as
      StartupPath in Windows service application?
      >
      Thanks in advance.
      >
      Majid
      >

      Comment

      Working...