Hello,
Thought you write code and run it and oppos the computer is shut down, ha !
So its happened to me and I tried to figure out why, what cause to that bug - a critical one, so Here the code who can shut down the computer you on it, Remember, I have no warranty to the code and its conclusions.
So,
Open a modal dialog and write this code, i.e. when the dialog closing event occurred
Win32.SetForegroundWindow(this.Owner.Handle);
this.ShowInTaskbar = false;
(must be in the same order).
Enjoy or not.
No comments:
Post a Comment