private: System::Void button10_Click(System::Object^ sender, System::EventArgs^ e)
{
button10->ForeColor=Color::Yellow;
const int Cfloor=250,Height=30;
for(int i=1;i<=8;i++)
{
button1->Location=Point(30,(Cfloor-Height*i ));
Threading::Thread::Sleep(100);
}
button10->ForeColor=Color::Black;
}
------解决方案--------------------------------------------------------
这个用 Timer 更合适
------解决方案--------------------------------------------------------
这个为啥要多线程,直接一个回调不就好了吗?