-
Oct 12th, 2013, 08:38 PM
#1
Thread Starter
Addicted Member
-
Oct 13th, 2013, 02:16 AM
#2
Re: Populate txtbox values on App1.exe with Command Line Arguments (sent from app2.ex
You can call Environment.GetCommandLineArgs anywhere you like, e.g. the Load event handler of your main form, to get the application commandline arguments in a String array. Note that the first element of that array will always be the name/path of the EXE itself, so the array will always have at least one element. You can simply get the other elements of that array and, after processing if necessary, assign them to the Text of a your TextBoxes.
-
Oct 13th, 2013, 02:18 AM
#3
Re: Populate txtbox values on App1.exe with Command Line Arguments (sent from app2.ex
To start another process, call Process.Start. You can pass the path of the file you want to execute as an argument. If you want to pass commandline arguments to the new process then pass them as a single String to the second parameter of Process.Start.
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|