Problems with Build

  • Thread starter Thread starter Brian
  • Start date Start date
B

Brian

I am typing in an example from a book and I get this error when building:

'Sub Main' was not found in 'LoanCalculator.Form1'.

I've never had this problem before but it has been a little while since I
loaded my Visual Basic .Net


What is causing this?

Thanks,
Brian
 
Jan. 12, 2005

Did the example have you change the Name property of Form1? If so then
goto the Solution Explorer and right click on your project. Then click on
"Properties". Then make sure that the selection in the listbox on the left
hand side of the screen is set to "Configuration Properties"(the wording
might be a little different) --> "General". Then find the "Startup object:"
property and set that to the form you want to be loaded when you run the
program. This should solve your question and have a great day! :)


Joseph MCAD
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top