Equivalent of VB6 DoEvents in C#

What is the equivalent of VB6 DoEvents in C#?

I have a calculation intensive loop in which I display a progress message in a textbox from time to time.

But when I actually run the program, the textbox does not update immediately.

Without programming a separate thread, is it possible to do this?
LVL 1
rajesh_khaterAsked:
Who is Participating?
 
perkindaConnect With a Mentor Commented:
The C# equivalent for the VB6 DoEvents is
Application.DoEvents
or  
public static void DoEvents ()

You will find an excellent example and explanation at the following url:
ms-help://MS.VSCC.v80/MS.MSDN.v80/MS.NETDEVFX.v20.en/CPref17/html/M_System_Windows_Forms_Application_DoEvents.htm


-- perkinda
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.