I have a C# app that I can use in Test mode by clicking a button which
reads data from a file for my test.
I would like to start the App from the command line and run the test
automatically without
the form waiting for the button click. So I tried to call the button
click event from
frmMain() but have no information for its paramteres , object sender
and eventargs e to pass into the click event.
btnTest_Click(object sender, System.EventArgs e)
How can either fix this problem ?
Or
Is there an alternated method to do this ?
Any help is appreciated.