![]() | |
![]() |
| | Thread Tools | Search this Thread | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
I had an old VB program that I pulled into VS2005 (VB.Net) to see if I could get anything useful out of the upgrade wizard. Well the program did not have a Sub Main, so I added that to a module and tried to set that as the startup object. But now I have this error: Error 1 'Sub Main' is declared more than once in 'MyUpgradedProject': MyUpgradedProject.My.MyApplication.Main(Args() As String), MyUpgradedProject.modFunctions.Main() Did a search through both the project and the files and cannot find My.MyApplication.Main. I'm guessing this is some reference that the upgrade "wizard" created in a buried file. Any ideas? |
#3
| |||
| |||
|
|
Hi, It might be in the generated code of your project. This is normally not visible. Right Click in the source code of your form and select Go To Defenition. Good luck JWHM "Earl" <brikshoe (AT) newsgroups (DOT) nospam> schreef in bericht news:uu5TpcxyGHA.3280 (AT) TK2MSFTNGP02 (DOT) phx.gbl... I had an old VB program that I pulled into VS2005 (VB.Net) to see if I could get anything useful out of the upgrade wizard. Well the program did not have a Sub Main, so I added that to a module and tried to set that as the startup object. But now I have this error: Error 1 'Sub Main' is declared more than once in 'MyUpgradedProject': MyUpgradedProject.My.MyApplication.Main(Args() As String), MyUpgradedProject.modFunctions.Main() Did a search through both the project and the files and cannot find My.MyApplication.Main. I'm guessing this is some reference that the upgrade "wizard" created in a buried file. Any ideas? |
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
| |