I've been watching this tutorial http://windowsclient.net/learn/video.aspx?v=296114. At the very begining empty Windows forms project is created in VS. When I create empty Windows forms project 开发者_运维技巧I have there files: Form1
, Program.cs
. When the guy from the tutorial creates it he has Form1
and App.config
files.
Why is that ? Can I Make my project run the GUI without having Main method (like in WPF but with Winforms) ?
Thank you
No, there will always be a Main
method really. It's just that in VB projects I believe it's autogenerated and not even shown. There's no equivalent option in C#.
精彩评论