Results 1 to 7 of 7

Thread: [RESOLVED] I need a special type of project

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Jul 2009
    Posts
    629

    Resolved [RESOLVED] I need a special type of project

    Hello everyone.

    I am currently working on a launcher, and it must consist of the following:
    - one main routine being called, NO WINDOW may be created at any times after or before this main routine.
    - one small form called by the main routine if a certain command was sent through the Command (shortcut).

    At this point I use a Windows Form, but it seems a little useless to create and initialize a form if you won't even use it. Any way to make a routine run when my program starts without showing any window? But still make it possible to show that small dialog?

    I did this at first but it seems a bit dangerous:
    Code:
        'NOTE: The following procedure is required by the Windows Form Designer
        'It can be modified using the Windows Form Designer.  
        'Do not modify it using the code editor.
        <System.Diagnostics.DebuggerStepThrough()> _
        Private Sub InitializeComponent()
            Main()
        End Sub
    Code:
        Sub Main()
            'Code to run here
        End Sub
    It starts another program (process) which has a GUI, so I do not want to display a console window. It would look ugly.

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