Windows Service Question

  • Thread starter Thread starter Jerry Camel
  • Start date Start date
J

Jerry Camel

I'm posting this here because it seems to be a much more active group that
the standard VB group and I suspect that ASP developers may be more inclined
to write a service, anyway.

I've got my service all nice and compiled and it runs just great. Question
is, how do I populate the description field in the Control Panel Services
applet? Is it a registry hack or should I be able to set this within the
service project in VS? Thanks.

Jerry
 
I think you could use attributes in the AssemblyInfo.vb file, like so

<Assembly: AssemblyDescription("My Description Here")>

HTH
Tim Stal

----- Jerry Camel wrote: ----

I'm posting this here because it seems to be a much more active group tha
the standard VB group and I suspect that ASP developers may be more incline
to write a service, anyway

I've got my service all nice and compiled and it runs just great. Questio
is, how do I populate the description field in the Control Panel Service
applet? Is it a registry hack or should I be able to set this within th
service project in VS? Thanks

Jerr
 
I'll give that a shot. Meanwhile, can you tell me how I stop my service
from within the service itself?

Jerry
 
Hey Jerry
So it sounds like you want the service to run for X seconds, and then stop itself (given that services have no UI)

Have the service start method kick off a timer (you can drag this from the "Toolbox>Components>Timer". In the timer method, increment a counter. Once the counter reaches a certain value, then have it call the stop method

Tim Stal


----- Jerry Camel wrote: ----

I'll give that a shot. Meanwhile, can you tell me how I stop my servic
from within the service itself

Jerr
 
This is the problem... Where is the Stop method? I can't find an object
with a stop method. Unless I create a ServiceController object, but I tried
that and it didn't seem to work. Please point me to the correct object. I
really must be missing something here, I can't imagine this is really that
hard to do! Thanks.

Jerry



Tim Stall said:
Hey Jerry,
So it sounds like you want the service to run for X seconds, and then
stop itself (given that services have no UI)?
Have the service start method kick off a timer (you can drag this from the
"Toolbox>Components>Timer". In the timer method, increment a counter. Once
the counter reaches a certain value, then have it call the stop method.
 
Back
Top