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
Run my code automatically without userInterface
1 Answer
Know the answer? Post it. Somebody with the same question will find it here.

Akkiraju IvaturiRank #473 · 5.3K reputationPosted Jan 16, 2013, 6:00 AM EST
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.