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 bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Invisible Form

Status
Not open for further replies.

manguilla

Programmer
Jul 20, 2004
52
US
Hello again. I currently have 1 Form in my app and I need it to run in the background when I run the .exe. Any help will be appreciated. Thanks.

Manguilla
 
You don't have to have ANY forms with VB 6 for the .exe to run. Just set the preferences to start the program with Sub Main, and put the beginning of your code in there.

Is that what you're trying to do?

Lee
 
That sounds like what the OP is trying to do. However, if not, and you need a form, then you can always set it to be invisible after you load it. I would prefer to use sub main personally.
 
Using the Sub Main worked great. Thanks everyone.

Manguilla
 
Out of curiosity.......If you do not intend to use the form for user interaction then why have the form to begin with....not that you understand the Sub Main idea that is.

Thanks


Andy Baldwin

"Testing is the most overlooked programming language on the books!"

Ask a great question, get a great answer. Ask a vague question, get a vague answer.
Find out how to get great answers FAQ219-2884.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top