calling VB.NET windows service methods
CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2

Thread: calling VB.NET windows service methods

  1. #1
    Join Date
    Oct 2005
    Posts
    113

    Arrow calling VB.NET windows service methods

    hi,

    Just i've created windows service called "MYserv1" and controlled(like start and stop) it via VB.NET client apps.(simplw VB.NET windows apps)

    Now i want to write my own function calls in the windows service. i need to pass the parameters as well as need to get a value from the function.

    How to do it? Most importantly,how can i access methods of windows service from client program.

    If this is not a right place to ask this question kindly direct me.

    Thank U!

  2. #2
    Join Date
    Jun 2004
    Location
    Kashmir, India
    Posts
    6,808

    Re: calling VB.NET windows service methods

    In your Client App you would have used ServiceController class tocontrol the behaviour of the service. You can use the same SCM to send custom commands to your service. This can be done by overriding OnCustomCommands in your Windows Service.

    To know more take a look
    http://msdn2.microsoft.com/en-us/lib...omcommand.aspx

Posting Permissions

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


Windows Mobile Development Center


Click Here to Expand Forum to Full Width

This is a CodeGuru survey question.


Featured


HTML5 Development Center