Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Windows sevices 1

Status
Not open for further replies.

Fursten

Programmer
Dec 27, 2000
403
PT
Hi,

Can someone tellme where can I found examples of vb.net windows services?

Thank you
 
Here's a sample:

Rules for writing services:
1. They must not have any interaction with the user or the desktop (ie. no popup windows, or for that matter, visual UI at all). If you need to communicate with the user, then a service is not what you should be writing.

2. In the OnStart event, start a new thread to do your real work. The OnStart event runs under the Service Control Manager, and if you take too long, it will mark your service as being non-responsive. So, doing things like doing a blocking read on a socket, or large DB query, is a bad idea.

Chip H.


____________________________________________________________________
If you want to get the best response to a question, please read FAQ222-2244 first
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top