View Single Post
  #8 (permalink)  
Old 03-30-10, 19:32
loquin loquin is offline
Super Moderator
 
Join Date: Jun 2004
Location: Arizona, USA
Posts: 1,797
The default startup object in VB6 is Form1. Since it always gets called at startup, the IDE won't let you delete it... But, you can change this behavior.

In a module, be sure to have a sub named "Main"

Then go to the Project Properties Menu, and change the Startup Object to Sub Main.

Now you can delete Form1.

Just be sure that Sub Main calls the code you need to run at startup...
__________________
Lou
使大吃一惊
"Lisa, in this house, we obey the laws of thermodynamics!" - Homer Simpson
"I have my standards. They may be low, but I have them!" - Bette Middler
"It's a book about a Spanish guy named Manual. You should read it." - Dilbert

Reply With Quote