Search code examples
vb.netgarbage-collection

How to exit an application properly


Usually, I will just use Environment.Exit(code) to exit an application. (Usually through a button click.) But I would like to know is it the proper way to exit, ie, releasing memory etc etc...


Solution

  • Just Close() all active/existing forms and the application should exit.