For more information, see Using Statement. This example uses a Using block to make sure that the application closes the port even if it throws an exception. For more information, see How to: Show Available Serial Ports. This example assumes the computer is using COM1 for more flexibility, the code should allow the user to select the desired serial port from a list of available ports.
0 Comments
Leave a Reply. |