deploy the service with one form to be visible

  • Thread starter Thread starter raghavendra
  • Start date Start date
R

raghavendra

Hi ,

I have created a windows service ...
which will send the messages to one port ..ok .. that is working
fine.
Now, what i did is added one Form in windows service project along with
one Multiline textbox..
i am planning to show the messages , which are sent to one port..
ok.

how to make the visible after starting the service...or after installing
the service..

OR

Do i need to create a different project with one form.
Call that service in that form .....& then check
whether , i can get the messages from that port..

Waiting for the reply,

Thankx & Regards,
Raghavendra..
 
Hi Raghavendra,

Generally, its is not recommended to display an interactive UI such as a
Windows Form from a Windows Service. Would suggest that you create a
seperate windows forms application, and have the windows Service communicate
to the windows forms app via .NET Remoting.

Regards,
Aravind C
 
Hi ,

In Windows Service, you should not have the UI of WinForm, normally, you
should write Eventlog to show your message.
But if you still need the WinForm UI for this service, just follow
Aravind's suggestion, use remoting to communicate with the service.
For more information of hosting remoting object in service, please refer to:
http://www.codeproject.com/useritems/winservicehost.asp

Hope this helps,
Best regards,
Jeffrey Tan
Microsoft Online Partner Support
Get Secure! - www.microsoft.com/security
This posting is provided "as is" with no warranties and confers no rights.
 
Back
Top