C++ NET button form switch problem
So I'm making this periodic table application, and spent an hour laying it all out. Perfectly I must add. Now I'm trying to figure out how to get it so when I click a button it opens the new form (Have this done) and replace the value of some labels/textboxes etc. How would I go about this? Here's my button clicked script.
private: System::Void hydrogen_Click(System::Object^ sender, System::EventArgs^ e) {
Form2^ newform2 = gcnew Form2;
newform2->ShowDialog();
What I would like to be able to get is so on click it opens the form, and sets the value of "atomname" to "Hydrogen". Thanks ahead of time guys!
valestrom
Junior Poster in Training
54 posts since Mar 2011
Reputation Points: 27
Solved Threads: 0
valestrom
Junior Poster in Training
54 posts since Mar 2011
Reputation Points: 27
Solved Threads: 0