Donald Palmer

Donald Palmer

  • 1.7k
  • 37
  • 1.5k

How to close application after startup?

Mar 6 2022 8:17 PM

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


Answers (2)