VB.net program with no UI

Freesnöw picture Freesnöw · Nov 17, 2011 · Viewed 9.4k times · Source

I'm making a VB.net program via a text file and I'm compiling it using vbc.exe via command line. I'm trying to get just a simple program to run in the background of my computer. Problem is, it displays the annoying console window. How do I get nothing to show? No form, no console?

Answer

MemoryVandal picture MemoryVandal · Nov 17, 2011

Just use windows forms application don't load the form at all! Just go in project properties and uncheck enable application framework. Now, in the startup object dropdown, select "sub main". Add a module to the project and put a Public Sub Main() in it. You do all the stuff in main() and don't load form at all.