Topshelf.WinformsHost provides extensions to run your services in a winforms environment (when started interavtively), instead of the default console environment.
It's available via nuget package
PM> Install-Package Topshelf.WinformsHost
static void Main(string[] args)
{
HostFactory.Run(c =>
{
c.UseWinformsHost();
c.Service<SampleService>());
});
}