|
-
Jul 25th, 2009, 01:54 PM
#1
Thread Starter
Junior Member
[RESOLVED] How to make an exe with no form?
This may be a silly question but I do not need a form to run my code since it will be called from a scripting application.
The issue I have is that all of the code runs automatically once the form loads, as part of the Form_load event, and because I am still in this event, I cannot close the form at the end so I have no way to tell the scripting application (which does not take parameters) that the code has run.
Therefore I thought of just having the code as an executable without a form (pretty much like a command line executable), or finding a way to close the form while it is still in its load event.
Any ideas?
Thanks
Olivier
-
Jul 25th, 2009, 02:05 PM
#2
Thread Starter
Junior Member
Re: How to make an exe with no form?
Solved the problem:
Remove the form in the project
Add a Sub Main in the main module
Set the project to start with Sub Main in the Project Properties window
Olivier
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|