473,326 Members | 2,680 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,326 software developers and data experts.

Serial Communications

Does anyone have an example, using VB.Net,showing how to communicate with a
serial port. I have my computer hooked to a box that has a print button on
it. When the print button is pushed on the box I would like for an event to
be fired in my program so that I could handle the data from there. mscomm is
very easy to use in VB6. Is there something comparable in VB.Net.

Thanks for any Help
DCS Tech
Nov 21 '05 #1
8 1215
http://support.microsoft.com/default...79&Product=vb6
"dcstech" <dc*****@discussions.microsoft.com> wrote in message
news:5C**********************************@microsof t.com...
Does anyone have an example, using VB.Net,showing how to communicate with a
serial port. I have my computer hooked to a box that has a print button on
it. When the print button is pushed on the box I would like for an event to
be fired in my program so that I could handle the data from there. mscomm is
very easy to use in VB6. Is there something comparable in VB.Net.

Thanks for any Help
DCS Tech

Nov 21 '05 #2
http://support.microsoft.com/default...79&Product=vb6
"dcstech" <dc*****@discussions.microsoft.com> wrote in message
news:5C**********************************@microsof t.com...
Does anyone have an example, using VB.Net,showing how to communicate with a
serial port. I have my computer hooked to a box that has a print button on
it. When the print button is pushed on the box I would like for an event to
be fired in my program so that I could handle the data from there. mscomm is
very easy to use in VB6. Is there something comparable in VB.Net.

Thanks for any Help
DCS Tech

Nov 21 '05 #3
You might give this a look also....
http://www.codeworks.it/net/VBNetRs232.htm

good Luck,
Thom

"Mark Jones" <no**************@devnullbucket.org> wrote in message
news:41***********************@news.twtelecom.net. ..
http://support.microsoft.com/default...79&Product=vb6
"dcstech" <dc*****@discussions.microsoft.com> wrote in message
news:5C**********************************@microsof t.com...
Does anyone have an example, using VB.Net,showing how to communicate with a serial port. I have my computer hooked to a box that has a print button on it. When the print button is pushed on the box I would like for an event to be fired in my program so that I could handle the data from there. mscomm is very easy to use in VB6. Is there something comparable in VB.Net.

Thanks for any Help
DCS Tech


Nov 21 '05 #4
You might give this a look also....
http://www.codeworks.it/net/VBNetRs232.htm

good Luck,
Thom

"Mark Jones" <no**************@devnullbucket.org> wrote in message
news:41***********************@news.twtelecom.net. ..
http://support.microsoft.com/default...79&Product=vb6
"dcstech" <dc*****@discussions.microsoft.com> wrote in message
news:5C**********************************@microsof t.com...
Does anyone have an example, using VB.Net,showing how to communicate with a serial port. I have my computer hooked to a box that has a print button on it. When the print button is pushed on the box I would like for an event to be fired in my program so that I could handle the data from there. mscomm is very easy to use in VB6. Is there something comparable in VB.Net.

Thanks for any Help
DCS Tech


Nov 21 '05 #5
"Thom" <tj******@charter.net> schrieb:
You might give this a look also....
http://www.codeworks.it/net/VBNetRs232.htm


Some more links:

Thomas Scheidegger's Serial Port FAQ (in German)
<URL:http://groups.google.com/groups?selm=O2UyhTLvDHA.1680%40TK2MSFTNGP12.phx.gb l>

..NET 2.0 will provide support for accessing the serial port:

'SerialPort' Class
<URL:http://longhorn.msdn.microsoft.com/lhsdk/ref/ns/system.io.ports/c/serialport/serialport.aspx>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #6
"Thom" <tj******@charter.net> schrieb:
You might give this a look also....
http://www.codeworks.it/net/VBNetRs232.htm


Some more links:

Thomas Scheidegger's Serial Port FAQ (in German)
<URL:http://groups.google.com/groups?selm=O2UyhTLvDHA.1680%40TK2MSFTNGP12.phx.gb l>

..NET 2.0 will provide support for accessing the serial port:

'SerialPort' Class
<URL:http://longhorn.msdn.microsoft.com/lhsdk/ref/ns/system.io.ports/c/serialport/serialport.aspx>

--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>

Nov 21 '05 #7
Some time ago I was also looking fir a good serial port communication.
After spending too much time searching for code that was reliable, I
downloaded the VS.NET 2005 Bèta. It's so much easier than all that stuff
that is arround, and it works great :-)

"dcstech" <dc*****@discussions.microsoft.com> wrote in message
news:5C**********************************@microsof t.com...
Does anyone have an example, using VB.Net,showing how to communicate with a serial port. I have my computer hooked to a box that has a print button on it. When the print button is pushed on the box I would like for an event to be fired in my program so that I could handle the data from there. mscomm is very easy to use in VB6. Is there something comparable in VB.Net.

Thanks for any Help
DCS Tech

Nov 21 '05 #8
Hi,

I have lots of examples in my book (see below). You can download NETComm
from my homepage -- the API is almost that of MSComm, for obvious reasons.
The code in my book has both native .NET, ActiveX, and other .NET add-ons.

There also are a number of examples online.

Dick

--
Richard Grier (Microsoft Visual Basic MVP)

See www.hardandsoftware.net for contact information.

Author of Visual Basic Programmer's Guide to Serial Communications, 4th
Edition ISBN 1-890422-28-2 (391 pages) published July 2004. See
www.mabry.com/vbpgser4 to order.
Nov 21 '05 #9

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

Similar topics

1
by: Andreas Horneff | last post by:
Hi @ all, I've got a problem with serial communication in Borland C++ Builder. I've already found a lot of stuff about serial communication in the internet, but it dosen't work. What I want...
6
by: Peter Krikelis | last post by:
Hi All, I am having a problem setting up input mode for serial communications. (Sorry about the long code post). The following code is what I use to set up my comm port.
3
by: Ramakant Kasar | last post by:
Hi, If an application is reading data from a serial port, How can I open the same serial port with another application? Any idea? Please help. Thanks, Ramakant K.
2
by: K.K. | last post by:
I am writing program that will recieve or sent data to selected port (users can select which port they want to recieve or sent) but I don't know how or whick object I can use.
4
by: Ben Zhu | last post by:
I have a small project, which need use both RS232 port and excel for data plot. I considering use excel VB macro for the entire project. Although I used serial port extensively in MFC, I am not...
0
by: David | last post by:
I am having trouble with "ACCESS DENIED" error messages in a VB.NET 2003 application when attempting to open serial comms ports. The application has 2 ports that connect via serial cable to 2...
4
by: Gary Frank | last post by:
I'd like to write a program in VB.Net that handles serial communications to several devices. VB.Net 2003 does not have adequate built-in serial communications. I heard that 2005 will have that. ...
8
by: vicky | last post by:
Hello,I met a question when I wrote the program.I want the program can transmit the data frame continuosly through the RS232 when the communication has been interrupted.But I don't know how to...
5
by: Franklin M. Gauer III | last post by:
Hi All, I've written an ASP.NET application (webservice) that does simple serial communications via the .NET 2.0 SerialComm object. The application runs fine on my development machine. The...
5
by: LongBow | last post by:
Hello, Is there a way, in .NET, to determine what are the avialable Serial (Communications) Ports on a Windows OS and is there a way to determine that port isn't being use other than attempting...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

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.