Results 1 to 2 of 2

Thread: Restart a service programatically

  1. #1

    Thread Starter
    Member
    Join Date
    Sep 2002
    Location
    Cincinnati, OH
    Posts
    44

    Restart a service programatically

    Hello:

    I have a service that runs great. I would like to figure out how to restart this service programatically. Any help would be appreciated.
    Jim Webster

  2. #2
    Frenzied Member Ideas Man's Avatar
    Join Date
    Aug 2002
    Location
    Australia
    Posts
    1,718
    Very easy. Simply add the ServiceController control to your form (Found in the Components tab), bind it to the service you wish to control (make sure it's installed) and then just call its Start method.
    I use Microsoft Visual Basic 2005. (Therefore, most code samples I provide will be based around the .NET Framework v2.0, unless otherwise specified)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width