I am manipulating a C# code, and going to remove all the Form
s in the project and record output in a simple *.txt
file.
Already, the code is started in this way:
Application.Run(new Form1());
Since, I am going to remove the Forms, I tried to replaced it with a something else:
Application.Run(new MakeFile());
That MakeFile
class is responsible for creating a file, and recording the output on it.
The error is:
cannot convert from 'project.MakeFile' to 'System.Windows.Forms.ApplicationContext
The question is:
Is it possible to have a Form Application Project
and records its data in a File?
If yes, what should i do?