/// <summary> /// Set things in motion so your service can do its work. /// </summary> protected override void OnStart(string[] args) { //System.Diagnostics.Debugger.Break(); myProgram = new MyProgram(); myProgram.Start(); }