Home All Groups Group Topic Archive Search About

Application object in a windows services project

Author
8 Jul 2006 9:35 PM
Mark
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

Author
8 Jul 2006 9:57 PM
Stephany Young
Simply add a reference to System.Windows.Forms.


"Mark" <m***@dynatechsolution.com> wrote in message
news:ucZX8ZtoGHA.3452@TK2MSFTNGP05.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
Author
8 Jul 2006 10:49 PM
Mark
Thanks a lot.



Show quoteHide quote
"Stephany Young" <noone@localhost> wrote in message
news:%23T6%23OmtoGHA.4192@TK2MSFTNGP03.phx.gbl...
> Simply add a reference to System.Windows.Forms.
>
>
> "Mark" <m***@dynatechsolution.com> wrote in message
> news:ucZX8ZtoGHA.3452@TK2MSFTNGP05.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
>