473,396 Members | 1,866 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Windows Service Question

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
Nov 18 '05 #1
4 1113
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

Nov 18 '05 #2
I'll give that a shot. Meanwhile, can you tell me how I stop my service
from within the service itself?

Jerry
"Tim Stall" <an*******@discussions.microsoft.com> wrote in message
news:9A**********************************@microsof t.com...
I think you could use attributes in the AssemblyInfo.vb file, like so:

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

HTH,
Tim Stall

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

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

Nov 18 '05 #3
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
"Tim Stall" <an*******@discussions.microsoft.com> wrote in messag
news:9A**********************************@microsof t.com..
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 grou

tha the standard VB group and I suspect that ASP developers may be mor 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 Pane Service applet? Is it a registry hack or should I be able to set this withi th service project in VS? Thanks
Jerr

Nov 18 '05 #4
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" <an*******@discussions.microsoft.com> wrote in message
news:04**********************************@microsof t.com...
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 Stall
----- Jerry Camel wrote: -----

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

Jerry
"Tim Stall" <an*******@discussions.microsoft.com> wrote in message
news:9A**********************************@microsof t.com...
> I think you could use attributes in the AssemblyInfo.vb file, like so:
>><Assembly: AssemblyDescription("My Description Here")>>> HTH, > Tim Stall
>> ----- Jerry Camel wrote: -----
>> 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
>>>

Nov 18 '05 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
by: Richard Steele | last post by:
I have created a WinForm application that needs to be run as a windows service (the PC is inaccesible by any user) i have successfully installed the application as a windows service. When i start...
17
by: UJ | last post by:
Is there any way for a windows service to start a windows program ? I have a service that will need to restart a windows app if it needs to. TIA - Jeff.
2
by: deko | last post by:
When to use a privileged user thread rather than a windows service? That's the question raised in a previous post . It was suggested that if the service needs to interact with a WinForms app...
2
by: shyam | last post by:
I have a C++ COM based windows service which have more than 30k lines of code and which is stablized over years. We need to take the advantage of the ..NET framework for this project, especially...
5
by: dm3281 | last post by:
I'm really starting to hate writing services -- or trying to, anyway. Why do I need to rename my project to the service name? Why do I need to set the "ServiceName" property to my service name?...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.