the entry point of a program

The entry point of a Winform program is the method "Main". There is always a "Main" method in a winform program, and the default location of the "Main" is in the file "Program.cs".

In addition to the default location, "Main" can also exist in the other classes. If there is no "Program.cs" in the project, you can press Ctrl+F and enter "Main" in the search box, then select the "Current Project" in the drop-down box.

The specific operation is shown in the following figure.

猜你喜欢

转载自www.cnblogs.com/jizhiqiliao/p/9914639.html