I know, how i can passing parameters in console app but i don't know, how i can do it in form app.
Example of passing parameters in console app:
My parameters: run ConsoleApp.exe HelloWorld
static void Main(string args)
{
MessageBox.Show(args);
}
I already tried this but, it keep coming up with error:
public Test(string args)
{
InitializeComponent();
MessageBox.Show(args);
}
My code:
public partial class test : Form
public test(string args)
{
InitializeComponent();
MessageBox.Show(args);
}
private void test_Load(object sender, EventArgs e)
{
}