Hi all,
I created an application in c#-webform.
Now my problem is that:
when I run this application I am getting form.
My requirement is I do not want to show my form.
I want to rum my code silently.
Many thanks
Darma
Loading
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Akkiraju IvaturiPosted Jan 16, 2013, 11:00 AM
Go to Program.cs file in your application and comment the 3 lines in the Main() method which starts with Application.
//Application.EnableVisualStyles();
//Application.
//Application.
Write your code here to execute and when you run it will run silently without opening a form.
I have written a simple code to write to a file.
string lines = {"first", "second"}
File.WriteAllLines(@"C:\lines.txt", lines);
Let me know if you any more help.