473,395 Members | 1,649 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,395 software developers and data experts.

RS232C Communication in VB.NET 2003

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!

Dec 10 '07 #1
2 1900
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.
Dec 10 '07 #2
th*********@gmail.com wrote in news:183b9303-15ed-4189-8553-
81**********@i12g2000prf.googlegroups.com:
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/d...075318ca-e4f1-
4846-912c-b4ed37a1578b&DisplayLang=en

http://www.codeproject.com/KB/vb/Com...de_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.

--
sp**********@rogers.com (Do not e-mail)
Dec 10 '07 #3

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

Similar topics

5
by: John Norman | last post by:
I'm trying to pas data back and forth between a vb app, and a c++ app. I have tried several methods: Through a dll (written in C++), doesn't work because each app has it's own instances of the...
7
by: Dan V. | last post by:
Situation: I have to connect with my Windows 2000 server using VS.NET 2003 and C# and connect to a remote Linux server at another company's office and query their XML file. Their file may be...
7
by: Angel Todorov | last post by:
Hello, I am currently adding SSL support to the Npgsql driver (the .NET data provider for PostgreSQL). I have tested with the Mentalis Secure Library...
3
by: Tim Reynolds | last post by:
I support a .Net application running on a SERVER accessing MF Db2 data. Occasionally, we have some type of connection problem that we have been unable to debug up to this point. We typically...
3
by: james | last post by:
Hallo! How do I realise the communication between two applications that run two diffenrent processes, in a way to exchange some information? Thanks a lot for helping James
1
by: Liu Guidong | last post by:
Dear friends, I have a question about the communication between C# and C++. Can anyone help me ?? I have written a C# dll fies named "TestFordll2.dll",as fllow: using System; namespace...
3
by: JoskeXp | last post by:
Hi, I need to use Serial communicatie with VB.net (2003) I find in the Microsoft Visual Basic .NET Resource kit a Sax.net Communications Community Edition for serial communication. Can I use...
1
by: hardikpatelmca | last post by:
Hi everybody, I want to create web application using C# and live communication server. User can set his presence information, view other presence information and send instant messages. How can I...
1
by: just4priya | last post by:
Hi All, I need information related to RS232C communication. I wanted to communicate with a traffic controller over serial port using RS232 protocol.. Let me know any link/reference book names ...
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:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.