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
Attachment: Start_Application.cs.zip