Windows Service which will display a Form

  • Thread starter Thread starter Mr Utkal Ranjan Pradhan
  • Start date Start date
M

Mr Utkal Ranjan Pradhan

Hi Friends
I want to develop a windows service application, which will open a port on
the machine and constantly it will listen from that port. And when any data
comes to that port I want to display a Form with the data that has been
receieved by the port. So plz guide me to do that.

Can it be possible to display a form when any data comes to that port ????

Mr Utkal Ranjan, New Delhi.
 
Do you want someone to write the code for you? How about you get started and
then post more focused questions instead?

Showing a form from a service is not recommended, but it's possible. The
service has to be marked as permitted to interact with the desktop. The SDK
and VS.NET come with examples of how to do this, and also of how to use the
System.Net classes (such as TcpListener) to manage a socket and
corresponding port(s).
 
Back
Top