Set the type of assembly output to the Windows application in the "Project Properties" section and do not show the form in Main. You can do whatever you want - you just need to somehow control the lifetime of the application (for example, how do you plan to close it?)
source share