I have an application and this application needs to close when the window shutdown happen. How can i detect that the system is shutting down from a C# program
Jump to Post
It's probabbly because you have a console app and Message is part of System.Windows.Forms eg not included in a console app by default.
Even if you add the assembly reference I don't think the WndProc will work unless you have a form.
All 11 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.