ServiceController sc = new ServiceController("OPCGlobasysService",servername); ServiceControllerStatus st = sc.Status; if (st.ToString().ToLower() == "stopped") { labelControl4.Text = "Installed but stopped"; } if (st.ToString().ToLower() == "running") { labelControl4.Text = "Installed and started"; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)