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