Hi,
You enable OnComm receive events by setting RThreshold = 1. OnComm events
will be generated when one (or more) characters are received. You add code
in the OnComm event handler subroutine to process the data. Make sure that
you set RTSEnable = True -- many devices require that RTS be high before
they send data.
I have lots of examples in my book (see below) that might be helpful -- and
you might want to download DesktopSerialIO from my homepage, which is a
native .NET dll that you may find to be easier to deploy than MSComm.
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.