Several applications I have done for work needed to read a config.xml file for COM ports used by the application. I use to read this file in the Form constructor. Now I use the following, but I have not found the proper way to close the application if there is a problem (like no "config.xml" file or equipment the COM port connected not on causing that COM port to be invalid).
Thanks in advance for any ideas. There must be a proper way to read an applications configuration data (without user action) and close the application if needed.Donald

Mahesh ChandRank #1 · 393.3K reputationPosted Mar 6, 2022, 10:14 PM EST
Donald Palmer25 reputationPosted Mar 7, 2022, 2:25 AM EST