How to retrieve parameters in C# Form Application?
-
Hello I want to launch from C++ a other C# application with paramters. I use ShellExecute(handle, "param1", csharpapplication, NULL, NULL, SW_SHOWNORMAL); But i'm newbie in C# and i want to retrieve "param1" paramters when csharpapplication is initialized. Help me please
-
Hello I want to launch from C++ a other C# application with paramters. I use ShellExecute(handle, "param1", csharpapplication, NULL, NULL, SW_SHOWNORMAL); But i'm newbie in C# and i want to retrieve "param1" paramters when csharpapplication is initialized. Help me please
Environment.CommandLine or Environment.GetCommandLineArgs()
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google
-
Hello I want to launch from C++ a other C# application with paramters. I use ShellExecute(handle, "param1", csharpapplication, NULL, NULL, SW_SHOWNORMAL); But i'm newbie in C# and i want to retrieve "param1" paramters when csharpapplication is initialized. Help me please
The Main() method of your c# application should have a string[] parameter. This array will hold all the values that are passed to the application
#region signature my articles #endregion
-
Environment.CommandLine or Environment.GetCommandLineArgs()
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips: - make Visual display line numbers: Tools/Options/TextEditor/... - show exceptions with ToString() to see all information - before you ask a question here, search CodeProject, then Google
ok nice Environment.GetCommandLineArgs() works fine.