TCP Network Programming

G

Guest

Can anyone help me to understand how to make VB .NET transmit text entered in
a text box through a serial port while providing the user with the ability to
select baud rate, parity, data bits, stop bits and comm port used from combo
boxes?
 
T

Tom Shelton

Can anyone help me to understand how to make VB .NET transmit text entered in
a text box through a serial port while providing the user with the ability to
select baud rate, parity, data bits, stop bits and comm port used from combo
boxes?

hmmm, not sure how this applies to TCP Network programming - since your
question is really about serial port io... But, the answer is you'll need
to find a 3rd party library to access the serial port, because until 2.0 -
the .NET framework does not support serial communications.

here is an article from msdn magazine that might help you:

http://msdn.microsoft.com/msdnmag/issues/02/10/netserialcomm/

The code, is in C# - but the principals are the same.
 
B

Brian Henry

sending data through a serial port is not using TCP/IP networking.. but if
your search google for RS232 and VB.NET together you will find a lot of info
 
H

Herfried K. Wagner [MVP]

* "=?Utf-8?B?QnJpYW4=?= said:
Can anyone help me to understand how to make VB .NET transmit text entered in
a text box through a serial port while providing the user with the ability to
select baud rate, parity, data bits, stop bits and comm port used from combo
boxes?

Thomas Scheidegger's Serial Port FAQ (in German)
<URL:http://groups.google.com/[email protected]>
 
C

Cor Ligthert

Brian,

Do not forget to look at everything Richard Grier wrote about RS232 in the
Dotnet newsgroups. (I think there is much more I only selected on RS232).
You will find his homepage than as well.

http://tinyurl.com/69za9

I hope this helps?

Cor
 
D

Dick Grier

Hi,

This question doesn't have anything to do with TCP/IP or networking.

There are lots of serial classes and add-ons online, or you can P/Invoke the
underlying Windows serial APIs. I have example code for several methods in
my book (see below), along with other example code. You can download
NETcomm ocx from my homepage, or use other ActiveX controls.

There is a serial class in the free Visual Basic .NET Resource Kit that you
can download from Microsoft, or order on CD-ROM for the cost of the
shipping.

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.
 

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