Hello friends!



1) I am switching off my System without proper Shutdown. I want to write a program to shutdown the System properly.

To be Specific!
I want to execute a program when Iam switching off my Computer


2) The second question is I want to Turn Off my monitor from VB
I used the following coding. But its not working. Can u please help me .

SendMessage Me.hwnd, WM_SYSCOMMAND, SC_MONITORPOWER, ByVal 0&


Thanks & Regards
E.ElayaRaja