Results 1 to 2 of 2

Thread: [RESOLVED] How to make an exe with no form?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2009
    Posts
    17

    Resolved [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

  2. #2

    Thread Starter
    Junior Member
    Join Date
    Jul 2009
    Posts
    17

    Thumbs up 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
  •  



Click Here to Expand Forum to Full Width