471,330 Members | 1,463 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,330 software developers and data experts.

Receive argument in Form

Process.Start("WindowsFormsApplication1.exe","hi") to call app.exe to be
executed, then how to receive the argument "hi" in the Form?

Any idea would be appreciated.

Jun 27 '08 #1
3 1140
Environment.GetCommandLineArgs()
Jun 27 '08 #2
On Wed, 25 Jun 2008 13:19:04 -0700, Peter Morris
<mr*********@SPAMgmail.comwrote:
Environment.GetCommandLineArgs()
And alternatively, you can just make your Main() method the overload that
takes the arguments as parameters (as a string[] parameter) and inspect
them there.

Pete
Jun 27 '08 #3
Great. Thank you.
"Peter Duniho" <Np*********@nnowslpianmk.comwrote in message
news:op***************@petes-computer.local...
On Wed, 25 Jun 2008 13:19:04 -0700, Peter Morris
<mr*********@SPAMgmail.comwrote:
>Environment.GetCommandLineArgs()

And alternatively, you can just make your Main() method the overload that
takes the arguments as parameters (as a string[] parameter) and inspect
them there.

Pete
Jun 27 '08 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by Morten Overgaard | last post: by
4 posts views Thread by http://www.visual-basic-data-mining.net/forum | last post: by
1 post views Thread by Plem | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.