Button in windows forms..c++
C / C++ / MFC
1
Posts
1
Posters
0
Views
1
Watching
-
Hi I am not using mfc or any kind of complex thing I just work with windows forms using c++. My question is how can I have a have the following. by clicking the fist Button. user starsts a while loop. In the loop a series of events take place, and then we ask the user to input something to textBox. user enters the data and,clicks the 2nd Button. the program gets the data and goes back to the loop continueing its job. what i have so far is : private: System::Void 1stbtn_Click(System::Object * sender, System::EventArgs * e) { while (mycondition is true) { ...do the job wait for 2ndbtn to be pressed; ...do the job } } private: System::Void 2ndbtn_Click(System::Object * sender, System::EventArgs * e) { lol = textBox->Text; }