By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
455,455 Members | 1,385 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 455,455 IT Pros & Developers. It's quick & easy.

Receive argument in Form

P: n/a
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
Share this Question
Share on Google+
3 Replies


P: n/a
Environment.GetCommandLineArgs()
Jun 27 '08 #2

P: n/a
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

P: n/a
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.