One easy way:
string[] args = Environment.GetCommandLineArgs();
Alternatively, you can change the main call to include parameters (in Program.cs):
static void Main(string[] args) {
Then you need to pass it to your form and modify the form constructor accordingly (provided that where you need args ):
public Form1(string[] args) {
Tedd hansen
source share