473,385 Members | 2,014 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Windows Service with a Windows Form

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.
Nov 20 '05 #1
3 5699
Mr Utkal Ranjan Pradhan wrote:
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
????


Normally, a windows service doesn't interact with the desktop directly.
You don't want to display a form when no user is logged on, do you? The
usual way of handling such requirements is to have a separate
application that is run by the user or installed in her startup folder.
The service and the application will communicate via standard IPC
methods.

--
Patrick Philippot - Microsoft MVP [.Net]
MainSoft Consulting Services
www.mainsoft.fr
Nov 20 '05 #2
There is an example program called Wintalk that was installed with my
VB.NET Standard Edition, and is probably found with the other .NET product
installations available. Maybe somebody would know if Wintalk is freely
available for download somehow, if you don't have a .NET product? I think
that if you look at the Wintalk sample program, it may help you learn what
you are trying to do. It is a simple chatting program, but I think uses the
same principles that you are wanting.

On my machine it is located in the following folders, but maybe someplace
else for other folks:

"C:\Program Files\Microsoft Visual Studio
..NET\FrameworkSDK\Samples\Applications\Wintalk"
- Version 2002

"C:\Program Files\Microsoft Visual Studio .NET
2003\SDK\v1.1\Samples\Applications\Wintalk"
- Version 2003

~Brian

"Mr Utkal Ranjan Pradhan" <ut*****@hotmail.com> wrote in message
news:ed***************@TK2MSFTNGP10.phx.gbl...
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.

Nov 20 '05 #3
* "Mr Utkal Ranjan Pradhan" <ut*****@hotmail.com> scripsit:
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.


Create a 2nd application with the GUI which communicates with the
service (maybe using remoting, ...).

--
Herfried K. Wagner
MVP · VB Classic, VB.NET
<http://www.mvps.org/dotnet>

<http://www.plig.net/nnq/nquote.html>
Nov 20 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Will | last post by:
I'm working on a C# Windows Service that needs to monitor serial port communication. Because the .Net framework does not include support for serial communications, I've decided to use the...
3
by: Nathan Kovac | last post by:
I have a feeling I am missing something simple, but I just can't find it. Perhaps someone can give me a lead on where to look. I will describe the issue then post my code to the web service. My...
6
by: Dean R. Henderson | last post by:
I have a DTS Package I am able to execute successfully from a Windows Form application, but I cannot get this to work from an ASP.NET Web Service, although the Web Service impersonates the same...
5
by: pberna | last post by:
Dear all, I built a Web Form application to start and stop a Windows Service remotely. I successful tested the application on Windows 2000 server + IIS. I must include the ASPNET user to the...
1
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. I'm having trouble getting the code that I've written to work, can anyone shed some light as to where I'm...
0
by: Scott Davies | last post by:
Hi, I'm looking for some help on a small program that I'm trying to develop in VB.NET. The program I'm trying to develop needs to be able to do the following: - Select remote server -...
4
by: tshad | last post by:
What would be a good way to check programmatically whether a service was running? We have a service that dies periodically and I need to check to see if this service is running. I know how to...
0
by: Jason | last post by:
Ok, for the life of me, I just don't understand what's going on. I want to use remoting to send messages from a windows service to a windows form app, but I just can't get it to work. So, here's...
15
by: =?Utf-8?B?TVNU?= | last post by:
To demonstrate my problem, I have a very simple VB Windows application. It has a text box that is used to display a counter, a button to reset the counter, and a timer that increments the counter...
3
by: =?Utf-8?B?Zmh1bnRlcg==?= | last post by:
I have a Windows Service that should pop a windows form right before logoff, for the user to enter some information. I got things working fairly well except that the user does not get to see the...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.