QUOTE(Schwarzenegger @ 20 Feb, 2007 - 01:59 AM)

I lost a biggish VB program I was developing through a Save mishap. Luckily I had an MSWord copy of the program code but had to recreate the form from scratch. Now that I have got it all back together again the program comes up with " Must have Startup Form or Sub Main()" Somehow the code and the form do not connect. How do I fix this problem?
Cheers
QUOTE(Schwarzenegger @ 20 Feb, 2007 - 01:59 AM)

I lost a biggish VB program I was developing through a Save mishap. Luckily I had an MSWord copy of the program code but had to recreate the form from scratch. Now that I have got it all back together again the program comes up with " Must have Startup Form or Sub Main()" Somehow the code and the form do not connect. How do I fix this problem?
Cheers
QUOTE(Amadeus @ 20 Feb, 2007 - 03:23 AM)

Do you have more than one form? If so, you generally have to set the entry point of the program to be the main form, or the Sub Load() procedure. The property can be changed if required.
http://msdn2.microsoft.com/en-us/library/1...w0c(VS.80).aspxI have only one form. I have never had this kind of problem before with my other programs. I have looked at your reference but it is way over my head as is most VB help. I am afraid I need to be told in simple English what to do.