Serial comm program in Visual Studio

M

Thread Starter

master ravi

Can someone help me with Visual Studio 2005? I need a serial comm simple program to connect a device and operate receive, send data.
 
D

Davis Gentry

This is really easy to do with VS 2005. I have a VC# app I wrote for a customer that I can send you. Email me directly for it.

In general - just add a SerialPort component to your app by dragging it from the toolbox and dropping it onto the desired form. Then access it using the methods and properties associated. Pared down of all of the logic around them, the two main methods you will use to send and recieve once your port is open are:

to write:
{
SerPort.WriteLine(txtSendString.Text);
}

to read:

if (SerPort.NewLine != null)
{
txtOutput.Text = txtOutput.Text +
SerPort.ReadExisting();

}

Davis Gentry
Delta Tau Data Systems
[email protected]
 
Top