-
October 17th, 2011, 06:08 PM
#1
.NET Controlling 2nd form?
Hey, I'm just wondering how I can make it so that upon clicking a button it opens my
"Form2.h" and sets the value of "atomname" to "Hydrogen" I know there must be a way, but I have no idea. I know I could create 1 form for every one, but that would be about 170 forms, which would... suck.
Here's my code for a button click, help on how to make it do what I asked would be great =D
:
private: System::Void hydrogen_Click(System::Object^ sender, System::EventArgs^ e) {
Form2^ newform2 = gcnew Form2;
newform2->ShowDialog();
Tags for this Thread
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|