Hi,
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
makdu 0 Junior Poster in Training
Recommended Answers
Jump to PostIt'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.
Jump to PostI tried to use it, but getting an error
Error 1 The type or namespace name 'Message' could not be found (are you missing a using directive or an assembly reference?)
my application code is given here
... } …
All 11 Replies
farooqaaa 48 Enthusiast
makdu 0 Junior Poster in Training
pauldani -2 Light Poster
makdu 0 Junior Poster in Training
makdu 0 Junior Poster in Training
privatevoid 24 Junior Poster in Training
kplcjl 17 Junior Poster
kplcjl 17 Junior Poster
kplcjl 17 Junior Poster
makdu 0 Junior Poster in Training
makdu 0 Junior Poster in Training
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.