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?
Who is Participating?
perkindaConnect With a Mentor Commented:
The C# equivalent for the VB6 DoEvents is
public static void DoEvents ()

You will find an excellent example and explanation at the following url:

-- perkinda
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.