"Marina" <so*****@nospam.com> schrieb:
Some apps don't have a sub main. They have a form as a start up object.
MSDN on 'Application.Exit':
---
*CAUTION* The 'Form.Closed' and 'Form.Closing' events are not raised when
the 'Application.Exit' method is called to exit your application. If you
have validation code in either of these events that must be executed, you
should call the 'Form.Close' method for each open form individually before
calling the 'Exit' method.
---
--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://dotnet.mvps.org/dotnet/faqs/>