Whenever there is an interaction between a PC and hardware, most
of the time, we are communicating either through a serial port
or a parallel port. Here we will see how serial communication is
done in .NET 2003 using the Microsoft Communication control
(MSComm). There are of course many ways by which we can
communicate serially without using the MSComm control.
Communication in PCs happens through COM ports. We choose a COM
port open it. Before we open the COM port, we set the COM
properties like baud rate, parity bit, handshaking, input mode,
etc. The MSComm control allows you to establish a connection to
a serial port and connect to another computer or modem, issue
commands, and respond to various events. Adding the MSComm
control in .NET Note: MSCOMM32.OCX is a registered Microsoft
component that comes with Visual Basic 6.0. - Go to Tools ->
Add/Remove Items. - Click on the COM Components tab. - Click on
Browse, then go to Windows - > System32 folder. - Choose file
type as COM components, choose MSCOMM32.O