Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Sub Main() is not found (Win Console app) - resolved

Status
Not open for further replies.

IlyaRabyy

Programmer
Nov 9, 2010
568
US
Colleagues,
I cannot figure out why this error persists in the newly created project:

2023_03_08_11_25_ImageFileSizeControl_CannotSeeMain_tuwirp.jpg


For starters, I have "Module1" no more (see the bottom of the screenshot), I renamed it after the project's name.
For seconds, Sub Main() is there (see the top of the screenshot).

I did run the on-line search on this issue, but found nothing of a help.

What shall I do to get rid of this error?
AHWBGA!

Regards,

Ilya
 
You renamed the file Image_File_Size_ControlModule1 to ImageFileSizeControl ?
To get rid of this error, rename the file back to its original name.
 
mikrom said:
rename the file back to its original name

This didn't help.
But renaming the SLN file did: SLN had no underscores in its name, so I replaced spaces with underscores, and it worked.
Thank you for the idea, colleague!

Resolved.

Regards,

Ilya
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top