954,504 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Have something to say? Contribute New Article Reply to this Article

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
 

Nobody?

valestrom
Junior Poster in Training
54 posts since Mar 2011
Reputation Points: 27
Solved Threads: 0
 

This article has been dead for over three months

Post: Markdown Syntax: Formatting Help
You
View similar articles that have also been tagged: