Hi,
Created a Ui app with a Button. On Click of the button with in OnActionPerformed() of MainForm, created and launched a MessageBox with a 3 seconds delay. Soon after that i kept sleep for about 10 seconds. MessageBox disappears only after 13 seconds i.e., 3 + 10 (MessageBox wait seconds + Sleep seconds)
Code snippet:
{ MessageBox messageBox; messageBox.Construct(L"MessageBox Title", L"MessageBox Sample Code.", MSGBOX_STYLE_OK, 10000); int modalResult = 0; messageBox.ShowAndWait(modalResult); sleep(30); }
Please clarify.
Thanks
Anil