Click to See Complete Forum and Search --> : formless application
MR
Jan 3rd, 2000, 10:54 PM
Hello. I need to write a small program that will run without a form. It will run when called and kill itself after. Does anybody know what would be the best way to accomplish this?
Thanks in advance!
Michelle
Do you want to completely get rid of the form or do you just want to hide it for the users?
In any case, you could to create a module and have Sub Main() as your startup.
What is this program's purpose if I might ask?
MR
Jan 4th, 2000, 11:04 AM
The only purpose of this program is to delete zip files out of a specific folder.
Which method would you recommend?
Inhumanoid
Jan 4th, 2000, 11:14 AM
Open a new project, get rid of the form...
create a new bas file an type:
Sub Main()
'Do what you want to do here
End
End Sub
Go to the properties of your project and set "startup object" to Sub main...
That's it
In your Sub Main(), you would write KILL MyFile.zip.
vbforums.com
Copyright Internet.com Inc., All Rights Reserved.