How do I make a button in Windows Form shutdown my computer?

How do I make a button in Windows Form shutdown my computer? I it searched up and couldn't find anything for 7 tries.
Never tried but on stackoverflow I saw this tip.
 
   System::Diagnostics::Process::Start("shutdown","/s /t 0"); // translated to C++/CLI 


http://stackoverflow.com/questions/102567/how-to-shut-down-the-computer-from-c-sharp
Thanks! It worked. It took some time figuring out where to put the code and all.
Even shorter:
system("shutdown /s");
Topic archived. No new replies allowed.