RS232C Communication in VB.NET 2003

T

thomasc1020

Hi,

I am trying to write a code which reads in the iput characters from a
RS232C port(COM port). I found out that 'mscomm' can be used to solve
this problem on VB.NET 2005. However, I was unable to find out any
information about 'mscomm' from msdn that came with my caopy of
VS.NET
and any information on wheher 'mscomm' can be used in VB.NET 2003.
Please let me know how to communicate through a RS232C port in VB.NET
2003.


Thank you very much in advance!
 
D

Dick Grier

Hi,

You can use MSComm (I have examples in my book, and there is a KB article
that addresses it and other OCXs on msdn.com), or you can download
DesktopSerialIO.dll for 2003 (free) from my web site. It is a .NET dll,
which makes serial IO rather easy. The download includes a simple example.

I have lots more detailed information in my book, and additional examples --
also the source code for DesktopSerialIO.

Dick

--
Richard Grier, MVP
Hard & Software
Author of Visual Basic Programmer's Guide to Serial Communications, Fourth
Edition,
ISBN 1-890422-28-2 (391 pages, includes CD-ROM). July 2004, Revised March
2006.
See www.hardandsoftware.net for details and contact information.
 
G

Guest

(e-mail address removed) wrote in (e-mail address removed):
I am trying to write a code which reads in the iput characters from a
RS232C port(COM port). I found out that 'mscomm' can be used to solve
this problem on VB.NET 2005. However, I was unable to find out any
information about 'mscomm' from msdn that came with my caopy of
VS.NET

Did you Google? I found several great articles in 5 minutes?
and any information on wheher 'mscomm' can be used in VB.NET 2003.
Please let me know how to communicate through a RS232C port in VB.NET
2003.


Visual Basic .NET Code Sample: Using the COM Port in VB.NET
http://www.microsoft.com/downloads/details.aspx?FamilyID=075318ca-e4f1-
4846-912c-b4ed37a1578b&DisplayLang=en

http://www.codeproject.com/KB/vb/Comport_made_simple.aspx

Check this out:

http://www.codeworks.it/net/VBNetRs232.htm

There are also several commercial COM port components available for .NET
1.1.
 

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