Hi Tomas,
Thanks for your feedback.
Yes, per your requirement, you may get it done by calling the static
Sleep() method of System::Threading::Thread class.
However, based on my my Winform programming experience, calling Sleep in
the GUI thread will prevent the message loop from doing it work, which
caused WM_PAINT, WM_SIZE and other messages not to be processed timely.
This will introduce an hang UI to the end user, which is considered to be
non user friendly.
If you care about this problem, then can you tell me why do you want to
delay/sleep 3 seconds between functions calling and before form closing?
Maybe you may put this function code in a second worker thread and let the
GUI thread responsible.
Anyway, if you think this is not a problem for your application, you may
just Sleep() method without any modification. Thanks.
Best regards,
Jeffrey Tan
Microsoft Online Community Support
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.