The problem is that after I added the new class, the error came up when I did build the solution. What can be wrong?
In Form1, I don’t have any code yet.
I jus
Others have pointed out that you have two static void Main methods. There are two easy fixes for this, one obvious and one that hasn't been specifically mentioned yet:
Main1, NotMain, etc.With solution 2, you can have identical Main(string[] args) signatures in different classes without the compiler whining.