-
Okay, now how would I load an application like with a command line like this:
-game cstrike +connect 127.0.0.1:_____ +password ____
where the two blanks ____ are 2 text box' will be used for the input. Does anyonw know how thats done?? Soon enough I will finally understand the way VB works.
-
Use the Command function to get the Command Line argument.
Code:
Private Sub Form_Load()
'Display the command line argument in a TextBox
Text1 = Command
End Sub
-
huh?
so, megatron, how do I use that little code? I don't understand. Help!
-
The following is what you would type in the command prompt.
C:\>MyProgram.exe MyArgument
Now your application should load.
Code:
Private Sub Form_Load()
'Display the command line argument (in this case it's MyArgument) in a TextBox
Text1 = Command
End Sub