Can I ask a question about VC++.NET 2003.
about using window form application.
when I click button1, the programming will be run, and the
results will be displayed in textbox1, we are able to see update values in
textbox1, to achieve this function, I used the while loop to loop forever.
you know the problem is it could not be stopped.
So I want to create a stop button, once I click this button, it should be
stopped immediately, but not exist the form.
e.g
Expand|Select|Wrap|Line Numbers
- private: System::Void button1_Click(System::Object * sender, System::EventArgs * e)
- {
- while(true)]
- {
- }
- }
- private: System::Void button2_Click(System::Object * sender, System::EventArgs * e)
- {
- }
can anybody give me some idea?