J
John Veldthuis
I want to pass some startup commands to my application using a shortcut. I have worked out how to do
this no problems at all. I have a module and in it a SUB Main. In Main I do the parsing of the
command line parameters and store what I need.
I the create a new instance of my form that I want by
DIM myForm as New Form1
And then open it by using
myForm.OpenDialog
I use OpenDialog because the program would quit otherwise and I want to wait for the main program to
finish first.
However I find that because I sometimes start my form hidden that the whole program runs perfectly
once and then as soon as it has the program quits.
Any suggestions? I would like to take the cmdline args on the Form_Load but cant see them there.
this no problems at all. I have a module and in it a SUB Main. In Main I do the parsing of the
command line parameters and store what I need.
I the create a new instance of my form that I want by
DIM myForm as New Form1
And then open it by using
myForm.OpenDialog
I use OpenDialog because the program would quit otherwise and I want to wait for the main program to
finish first.
However I find that because I sometimes start my form hidden that the whole program runs perfectly
once and then as soon as it has the program quits.
Any suggestions? I would like to take the cmdline args on the Form_Load but cant see them there.