title: 'ServiceController' does not contain a definition for 'GetServices'
body: <p>I what to list all services on my computer with a C# form APP.
  But when i follow what all answers to list all services say i get:</p>
  
  <p><code>'ServiceController' does not contain a definition for 'GetServices'</code></p>
  
  <p>All my research leads to:</p>
  
  <pre><code>using ServiceStack.Host;
  using System;
  using System.Collections.Generic;
  using System.ComponentModel;
  using System.Data;
  using System.Drawing;
  using System.Linq;
  using System.Text;
  using System.Threading.Tasks;
  using System.Windows.Forms;
  
  
  namespace myFromApp
  {
      public partial class Services : Form
      {
          public Services()
          {
              InitializeComponent();
          }
  
   private void RefreshServiceBbutton_Click(object sender, EventArgs e)
          {
              ServiceController[] services = ServiceController.GetServices();
             foreach (ServiceController scTemp in scServices)
  {
     if (scTemp.Status == ServiceControllerStatus.Running)
     {
        //do stuff with each service(display info and such)
    }
  }
  
     }
  
     }
  }
  </code></pre>
  
  <p>`</p>