|
web
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
identify when running as a serviceIs there a programmatic way to identify when code is running as a service?
Jeff Jarrell wrote:
> Is there a programmatic way to identify when code is running as a service? I've been using this ...If System.Environment.UserInteractive = False Then ' Service Mode ' Else ' something else End If HTH, Phill W. that should do the trick.
thanks, jeff Show quoteHide quote "Phill W." <p-.-a-.-w-a-r-d@o-p-e-n-.-a-c-.-u-k> wrote in message news:edrdch$fu9$1@south.jnrs.ja.net... > Jeff Jarrell wrote: >> Is there a programmatic way to identify when code is running as a >> service? > > I've been using this ... > > If System.Environment.UserInteractive = False Then > ' Service Mode ' > Else > ' something else > End If > > HTH, > Phill W.
LAN IP
Visual Basic beginner question Search for files in folders? Date/Time Pickers/VB2005 app.config not copied to bin directory VB2005: Error Using a Separate Search Form How can I execute a simple command? String quickie: Remove trailing space from each RichTextBox line? how to open a form in C# Download tif from the web via a stream with progress indication |
|||||||||||||||||||||||