Hey, I was just wondering how I can get it so when I click a button it opens my second form. But sets some of the labels to a specific thing, so I don't end up making 170+ forms for my periodic table application. Just like so when I click "H" it opens the "Form2" and sets the label "atomname" to "Hydrogen"?
Here's my buttonclick so far.
private: System::Void hydrogen_Click(System::Object^ sender, System::EventArgs^ e) {
Form2^ newform2 = gcnew Form2;
newform2->ShowDialog();