help reqd starting new application with the main command

can someone help re ive started a new windows application put 2 buttons on form one for cancel one for enter (to open 2nd form) but cannot get the project to build keeps telling me no reference to main or exe, i have used VB in the past can someone point me in the right direction please 

Answer this question

help reqd starting new application with the main command

  • Peter H

    thankyou for your reply but have now found where i was going wrong
  • SteveTr

     

    Did you create the windows application from the wizards, if so there should be a program.cs file included this has the main function inside it. Then inside the project properties there should be a startup object make sure that tis is set to the <ApplicationName>.program. With this the appliation should start, unless you have moderfied the way that the program.cs file was generated.



  • CoolMicheal

    thankyou for assistance i had done it the wrong way round but have now sorted
  • Gage

    Hi,

    it may be very helpful if you provide the lines of code where the error happens  and the excact error message you are getting.



  • help reqd starting new application with the main command