OnComm Events in MSCOMM OCX control
-
I have to write the event handler for MSCOMM.OnComm who is listening to serial port for data, so that the event is fired 'OnComm' is executed when the data is arrived. My understanding for the documentation is unclear as how to achieve this. Does any one have the sample source code implementation in C# / C++? Thanks and Regards. Amar.
-
I have to write the event handler for MSCOMM.OnComm who is listening to serial port for data, so that the event is fired 'OnComm' is executed when the data is arrived. My understanding for the documentation is unclear as how to achieve this. Does any one have the sample source code implementation in C# / C++? Thanks and Regards. Amar.
If you're using .NET 2.0 (Visual Studio 2005), why are you even bothering with the MSCOMM control? There's a SerialPort class built into the .NET Framework under the System.Io.Ports namespace.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007