Widows service

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Robert Bravery

    Widows service

    HI all,

    I want to write a windows service. I also want to have a form for setting
    properties for the service. Can some one help me out, get me started or
    point me in the right direction

    Thanks

    Robert

  • Michael Nemtsev [MVP]

    #2
    Re: Widows service

    Hello Robert,

    just keep your setting into the the config and then use your UI form to edit
    these settings
    your service should check the config and read that settings

    and dont create the service with UI, it's not appropriate

    ---
    WBR,
    Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

    "The greatest danger for most of us is not that our aim is too high and we
    miss it, but that it is too low and we reach it" (c) Michelangelo


    RBHI all,
    RB>
    RBI want to write a windows service. I also want to have a form for
    RBsetting properties for the service. Can some one help me out, get me
    RBstarted or point me in the right direction
    RB>
    RBThanks
    RB>
    RBRobert
    RB>


    Comment

    • Claire

      #3
      Re: Widows service

      Depending on your version of visual studio there should be a wizard to
      create a windows service application.
      As services start up and run before users log in, you should never add a
      user interface to the main application.
      Create a 2nd simple form application and use it to create the configuration
      that the service reads. Remember to make your service rugged so that it wont
      fall over if it doesnt find the config file.


      Comment

      Working...