TexG Posted April 3, 2003 Posted April 3, 2003 Hello All, First timer here. Im haveing problems. I have just installed vb.net and im trying to do my first program. When i click on the windows application for VB it loads and tells me the the module can not be found. Then in the task list it says sub main not found in project1. Any ideals on this i have uninstalled four times to get the same thing on reinstall. Thanks Quote
Moderators Robby Posted April 3, 2003 Moderators Posted April 3, 2003 Download this sample and tell if it works.testapp.zip Quote Visit...Bassic Software
TexG Posted April 3, 2003 Author Posted April 3, 2003 Robby, D/l you code and ran it worked fine. Quote
Moderators Robby Posted April 3, 2003 Moderators Posted April 3, 2003 What are the exact steps you take when you do this. Quote Visit...Bassic Software
TexG Posted April 3, 2003 Author Posted April 3, 2003 open visual studio .Net i have the new projects set to open first then i click on visual basic projects then on windows application it trys to load and then i get this msg the specified module could not be found i click ok then in the task list is says sub mian was not found in windowsapplication3 on your program you sent i unzip and click on the TestApp.vbproj file and it loads i press f5 and run and i see button1 when clicked it says it worked Quote
iebidan Posted April 3, 2003 Posted April 3, 2003 did you checked the propoerties for the project??? try changing them fro Sub Main Quote Fat kids are harder to kidnap
TexG Posted April 3, 2003 Author Posted April 3, 2003 Iebidan, yes i did and when i first run the template it just has sub main for the project and i cant add any forms to change it. thanks Quote
Moderators Robby Posted April 3, 2003 Moderators Posted April 3, 2003 hmm, this weird. Try this... Open the sln (solution) in file I sent, right click the project(in the solution explorer) and Add New Item, then select Windows Forms. Quote Visit...Bassic Software
TexG Posted April 3, 2003 Author Posted April 3, 2003 ok did just that and it says unspecified error strange Quote
Moderators Robby Posted April 3, 2003 Moderators Posted April 3, 2003 Very strange indeed. Create a New Solution in C#, see what happens. Quote Visit...Bassic Software
TexG Posted April 3, 2003 Author Posted April 3, 2003 I can add buttions and listboxs and check boxs to you code but cant add a form. Quote
Moderators Robby Posted April 3, 2003 Moderators Posted April 3, 2003 hey if all else fails, we can create a bunch of projects for you to use as templates. :) Quote Visit...Bassic Software
TexG Posted April 3, 2003 Author Posted April 3, 2003 i guess that would work except i coudnt add any more forms to your code you sent me. but a good ideal Quote
TexG Posted April 3, 2003 Author Posted April 3, 2003 ok here is what i installed iis first then i did the upgrade on the sp1 disk 5 and then did a whole install rebooted and same thing Quote
Moderators Robby Posted April 3, 2003 Moderators Posted April 3, 2003 hehe, you can fool around with this project containing 6 forms until you get things fixed.sixforms.zip Quote Visit...Bassic Software
TexG Posted April 3, 2003 Author Posted April 3, 2003 cool thanks robby, i like what the vb.net has to offer. may have to do a whole reinstall of system. somthings hosed thanks again. Quote
Winston Posted April 3, 2003 Posted April 3, 2003 have u tried right clicking on your project and going to props and setting startup object as sub main if it aint int he list then make a class and create a sub main and instantiate the main form in that process and then select that block as startup object Quote
TexG Posted April 3, 2003 Author Posted April 3, 2003 Winston, it is set to sub main in the progect properties. it wont let me add a class or anything thanks for you help Quote
Moderators Robby Posted April 3, 2003 Moderators Posted April 3, 2003 Have you tried to add a Blank Solution, then adding a Class to it? Quote Visit...Bassic Software
TexG Posted April 3, 2003 Author Posted April 3, 2003 it wont show a class for a blank solution. Quote
TexG Posted April 3, 2003 Author Posted April 3, 2003 Ok here give this some thought. i just added a references to system.windows.forms may be my vbwizard dir is messed up. its not loading the proper references to do the job. hmmm Quote
Moderators Robby Posted April 3, 2003 Moderators Posted April 3, 2003 Have your tried a complete uninstall of VS? Quote Visit...Bassic Software
TexG Posted April 3, 2003 Author Posted April 3, 2003 ok here is what i have done. i took your first program rename it to windowsapplication.vbproj and all of it files and put it in to the dir under the vbwizzard for windowsapplication. it loads up but with a error but i have a form on it. just tryed somthing else. i deleted the scipt file and i think thats where the erros coming from. is there any way i can get you to zip up that whole dir and let me check if its the files and not the main program? thanks Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.