Hello,
I am opening a new Form in my application and want to pass along a variable to Form2.
I think I am pass along it correctly but are not sure how to receive it in Form2.
How will that be possible ?
String^ ForwardVariable;
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e)
{
ForwardVariable= "dummyString";
Form2^ form2 = gcnew Form2;
form2->Show(ForwardVariable);
}