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!

Nobody?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.