Advertisement
Advertisement
| 03.16.2008 at 12:38PM PDT, ID: 23245557 |
|
[x]
Attachment Details
|
||
1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: |
private: System::Void button1_Click(System::Object^ sender, System::EventArgs^ e) {
Guy="Andrew";
textBox1->Text = Guy;
}
private: System::Void button2_Click(System::Object^ sender, System::EventArgs^ e) {
//Guy="Andrew"; Why not work without it? I dont want to write Guy value each time for each button for example :/ I want to declare it and its value just one time. How could i do that?
textBox1->Text = Guy;
}
public:
System::String^ Guy;
|