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 RepliesReply to this topic
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, learning, and sharing knowledge.