This solution shows how you can control serial communication in.NET. VS.NET does not include any functionality that controls the communication via serial port. Or, at least, I haven't discovered such functionality.
This small application shows how you can use API functions to control serial communications.The application is based on an sample from Microsoft and provides almost the same functionality as MSComm control, although the interface may not be the same.Instructions: Click the link below to download the code. Select 'Save' from the IE popup dialog. Once downloaded, open the.zip file from your local drive using WinZip or a comparable program to view the contents.Download.
I have neen doing it for several years now. I have seen three methods:1 - MSCOMM2 - Common Basic statements of OPEN, PRINT/WRITE, CLOSE and3 - The method I use, API calls into the Kernel32.I am using Excel 97 and it will not run MSCOMM.
Something about notbeing licenced or approved. I don't recall the exact wording of themessage I got when trying to load the MSCOMM module.I can send you workbooks that have methods 2 & 3.
Visual Studio Serial Port Example
I have seen MSCOMMexamples on the web as well. They may be large!! Theysend out the port to operate ham radios and are quite envolved,but you should be able to use the module.My method has one module with very good comments and was written bysomeone who knew what he was doing.