I have two separate projects. In the first project, I have a form. In the second, I have a class file and Windows...
service. Is it possible to get data of the form that is in the first project to that Windows Service? If this is not possible, please tell me how to get the value from that form to a class file. Windows services can expose a remoting server object at a Uri, say tcp://localhost/MyService.rem. The Windows Form can create a new instance of this "remote" object and call a method on it, passing the form data. The method is executed on the service application, where you can do whatever you need. You can start at MSDN on how to expose the remote object, how to configure the "server" (the windows service) and client application (the "form"):
Other interesting introductory articles are:
Related Q&A from Daniel Cazzulino
Here Daniel Cazzulino explains how to load a DSL (domain specific language) domain model instance file programmatically. This requires the .NET type ...continue reading
Here we offer a glimpse at 12 of .NET development expert Danny Cazzulino's top ASP.NET questions and answers.continue reading
C# developers should NOT be modifying InitializeComponent method in the code-behind (or any of the variable definitions) by hand.continue reading
Have a question for an expert?
Please add a title for your question
Get answers from a TechTarget expert on whatever's puzzling you.