Program 'C:\Users\johnpal\Desktop\SMSapplication\SMSapplication\obj\Debug\SMSapplication.exe' has more than one entry point defined: 'SMSapplication.Program.Main()'. Compile with /main to specify the type that contains the entry point. C:\Users\johnpal\Desktop\SMSapplication\SMSapplication\Program.cs 13 21 SMSapplication... while compiling visual studio how to solve this problem

You probably have more than one static method named "Main".

should i change the program.cs" static main" into static main1

That is more likely the one that should stay (BTW it is Main, not main in C#)
DO a search for "Main" in all the files you have in your project.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.