Click here to Skip to main content
15,910,234 members
Home / Discussions / C#
   

C#

 
GeneralRe: Programming Pin
Dan Neely9-Apr-09 9:43
Dan Neely9-Apr-09 9:43 
AnswerRe: Programming Pin
Luc 6480119-Apr-09 10:06
Luc 6480119-Apr-09 10:06 
AnswerRe: Programming Pin
Eddy Vluggen9-Apr-09 10:36
professionalEddy Vluggen9-Apr-09 10:36 
AnswerRe: Programming Pin
0x3c09-Apr-09 10:46
0x3c09-Apr-09 10:46 
AnswerRe: Programming Pin
DaveyM699-Apr-09 11:14
professionalDaveyM699-Apr-09 11:14 
AnswerRe: Programming Pin
jaypatel5129-Apr-09 20:15
jaypatel5129-Apr-09 20:15 
AnswerRe: Programming Pin
jaypatel5129-Apr-09 20:38
jaypatel5129-Apr-09 20:38 
AnswerRe: Programming Pin
Skymir10-Apr-09 7:22
Skymir10-Apr-09 7:22 
Almost every motherboard has a jumper you can use, it's where they plug in the wires for the power switch on the outside of the case. Almost all of them function the same way as well, short the circuit, and it starts the shut down/power up sequence.

You can also control the power from the power supply tap to the motherboard, many power supplies also have their own power switch (usually much higher voltage) and there is a way to do it through the PCI bus as well. Going further out, you could also cut power to the entire system from the power cord.

In the end it really depends on how 'micro' the controller really is and what voltages you're dealing with. A 110 volt switch is probably a bad idea for hooking up to a motherboard jumper, however you could simply kill the power to a battery backup and let the system shut itself down. In the 12 volt range you could use one of the power supplies used for car based computers. If your running off the USB line, then the motherboard power switch is probably your best bet.

As others have mentioned:
System.Diagnostics.Process.Start("Shutdown", "-s -t 10");

Will also turn the computer off.

The true man wants two things: danger and play. For that reason he wants woman, as the most dangerous plaything.

QuestionSend value from a form to another ! Pin
mrkeivan9-Apr-09 8:22
mrkeivan9-Apr-09 8:22 
AnswerRe: Send value from a form to another ! Pin
DaveyM699-Apr-09 8:39
professionalDaveyM699-Apr-09 8:39 
AnswerRe: Send value from a form to another ! Pin
jaypatel5129-Apr-09 20:39
jaypatel5129-Apr-09 20:39 
GeneralRe: Send value from a form to another ! Pin
mrkeivan10-Apr-09 8:59
mrkeivan10-Apr-09 8:59 
GeneralRe: Send value from a form to another ! Pin
DaveyM6912-Apr-09 21:51
professionalDaveyM6912-Apr-09 21:51 
QuestionCreate an EXE that runs without .NET Framework Pin
Mogaambo9-Apr-09 7:13
Mogaambo9-Apr-09 7:13 
AnswerRe: Create an EXE that runs without .NET Framework Pin
harold aptroot9-Apr-09 7:21
harold aptroot9-Apr-09 7:21 
AnswerRe: Create an EXE that runs without .NET Framework Pin
Dave Kreskowiak9-Apr-09 7:29
mveDave Kreskowiak9-Apr-09 7:29 
AnswerRe: Create an EXE that runs without .NET Framework Pin
EliottA9-Apr-09 7:38
EliottA9-Apr-09 7:38 
AnswerRe: Create an EXE that runs without .NET Framework Pin
Dan Neely9-Apr-09 7:43
Dan Neely9-Apr-09 7:43 
AnswerRe: Create an EXE that runs without .NET Framework Pin
Christian Graus9-Apr-09 9:26
protectorChristian Graus9-Apr-09 9:26 
GeneralRe: Create an EXE that runs without .NET Framework Pin
Dan Neely9-Apr-09 10:51
Dan Neely9-Apr-09 10:51 
GeneralRe: Create an EXE that runs without .NET Framework Pin
Mogaambo10-Apr-09 4:34
Mogaambo10-Apr-09 4:34 
GeneralRe: Create an EXE that runs without .NET Framework Pin
Henry Minute10-Apr-09 7:49
Henry Minute10-Apr-09 7:49 
GeneralRe: Create an EXE that runs without .NET Framework Pin
Mogaambo12-Apr-09 20:19
Mogaambo12-Apr-09 20:19 
Questioninsert data from EXECL sheet Pin
naveen20_59-Apr-09 6:25
naveen20_59-Apr-09 6:25 
AnswerRe: insert data from Excel sheet Pin
fly9049-Apr-09 6:47
fly9049-Apr-09 6:47 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.