I have a windows service that has a function, lets say
Sum(int a,int b)
How can I use this function from my windows form application?
I have a windows service that has a function, lets say
Sum(int a,int b)
How can I use this function from my windows form application?
Do not use .NET Remoting. That technology is out-of-date.
If you are wanting to invoke the Sum()
method in the Windows service from the client-side application, Windows Communication Foundation (WCF) would be a logical choice. You can view my answer here for an example of how this might be done.