How can I shut down/restart the OS from my Windows Forms Application?

Platform: WinForms|Category: Tips

You could do this using the WMI Classes in the .NET Framework or use WindowsController available at http://www.mentalis.org