I have a WCF service that is hosted inside a Windows Form.
How can I access the controls of the form from the methods in my service?
for example I have
The service will need a reference to the instance of the form, not just the type of the form.
Further you will need a way to send values to the form controls from your service class. This can either be done by making the Controls themselves public or protected, or you can create properties on your form class that will set the properties on the Controls.
A simple approach would be the following: