As the question says, what is the reason for this? I sort of understand that it helps to separate the visual code (design) from the background code (what actually happens), but this makes it more frustrating for a new person that works with Visual Studio.
For example, you create a new application, with one form. You then get 3 files and a design. Form1.cs where the main programming is, Form1.Designer.cs where most of your visual representation happens, and another Program.cs which serves as entry point.
Why is it like this exactly? And is it possible to create a full working form program with all the code in one file, how would it look like? Or does VS specify that all three files must be separate?
The main reason I am asking this is because I would like to go right down to the basics, and see if it is possible to make a simple 100-200 line program just in a .txt file, and what exactly would I need to look out for.