I needed to make an application that doesn’t show any window. I couldn't find the answer Also I looked at stack overflow pages.
Asked
Active
Viewed 1,193 times
0
-
Create non-console application without window. – Sinatr Jun 23 '15 at 11:18
-
While using c# forms i can do that from properties – user5039863 Jun 23 '15 at 11:19
-
1http://stackoverflow.com/a/70296/2180344 – Marc Jun 23 '15 at 11:21
-
Thanks for your interest but i dont have Application.Run(new MainForm()); – user5039863 Jun 23 '15 at 11:34
-
Make a new Windows Forms app and you will ... – Alex K. Jun 23 '15 at 11:36
-
Alex My project runs in console Why should i use windows form? – user5039863 Jun 23 '15 at 11:46
-
Guys i tried your solutions but it didnt work – user5039863 Jun 23 '15 at 11:53
-
Btw what does non console mean? – user5039863 Jun 23 '15 at 11:57
1 Answers
0
Does your application require a user interface? If not, you should really be creating a console application rather than a Windows Forms or WPF Application.
If you simply want to hide a form from within the form you can type the following:
this.Hide();
Edit: From a console application, you'll want to compile the project as a Windows Forms application under the project properties. Ensure that you have no startup object selected.

Fil Sapia
- 15
- 4