I have a piece of code that have Application:: DoEvents() and I have read on MSDN, but there's something that I still don't understand.
for example, here is my pseudocode:
Code:
void functionA()
{
while(true)
{
//command A;
//command B;
Application::DoEvents();
}
}
void Button_Click( System::Object^ sender, System::EventArgs^ e )
{
//do something
}
So, when program run to command A or command B, if I click -->nothing.
when run to Application:oEvents(): if I click. Program will excute event Button Click. If I don't, program will loop again.
Does my explanation about Application:: DoEvents() true.
Please explain for me,please.
thanks