[Last Call] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Equivalent of VB6 DoEvents in C#

Posted on 2007-10-13
1
Medium Priority
?
4,053 Views
Last Modified: 2013-12-17
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?
0
Comment
Question by:rajesh_khater
1 Comment
 
LVL 1

Accepted Solution

by:
perkinda earned 2000 total points
ID: 20070766
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

Featured Post

[Webinar] Cloud and Mobile-First Strategy

Maybe you’ve fully adopted the cloud since the beginning. Or maybe you started with on-prem resources but are pursuing a “cloud and mobile first” strategy. Getting to that end state has its challenges. Discover how to build out a 100% cloud and mobile IT strategy in this webinar.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Exception Handling is in the core of any application that is able to dignify its name. In this article, I'll guide you through the process of writing a DRY (Don't Repeat Yourself) Exception Handling mechanism, using Aspect Oriented Programming.
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an anti-spam), the admin…
Is your OST file inaccessible, Need to transfer OST file from one computer to another? Want to convert OST file to PST? If the answer to any of the above question is yes, then look no further. With the help of Stellar OST to PST Converter, you can e…
Suggested Courses
Course of the Month18 days, 12 hours left to enroll

834 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question