Serial Port

S

Steven Blair

Hi,

I need to talk to a serial port using C# and dont know how to do it.
Basically, I want to be able to send files and receive files from COM port
1.
Can .NET do this ?

Steven
www.stevenblair.com
 
E

Ed Sutton

Steven said:
Hi,

I need to talk to a serial port using C# and dont know how to do it.
Basically, I want to be able to send files and receive files from COM port
1.
Can .NET do this ?

Sure, you could use the old VB MSComm32.ocx control. The COM interop
works very well.

I recommend investigating the Sax.Net control.

This free .NET control is available in the VB.NET resource kit download.
The Sax.net control is made by the same guys that made the MSComm
control for Microsoft. You can use this control in any .NET language
including C#. This is a 192MB download.

http://msdn.microsoft.com/vbasic/vbrkit/default.aspx

After it decompresses, look in the following folder for the
"Sax.net Communications Community Edition.exe".

\vbrkit\Download Image\Application\Content\Third Party Components\FREE
..NET Controls\SAX.NET\

Also, read the GotDotNet User Sample: SerialPort discussion:

http://tinyurl.com/2ce6a

Hope this helps,

-Ed
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top