identify when running as a service

  • Thread starter Thread starter Jeff Jarrell
  • Start date Start date
J

Jeff Jarrell

Is there a programmatic way to identify when code is running as a service?
 
Jeff said:
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

Phill W. said:
I've been using this ...

If System.Environment.UserInteractive = False Then
' Service Mode '
Else
' something else
End If

HTH,
Phill W.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top