//Asp.net ServiceController service = new ServiceController("ABPS"); service.ExecuteCommand(1); //Service protected override void OnCustomCommand(int command) { base.OnCustomCommand(command); if (command == 1) { //Do something }//if }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)