Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 9150779
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T11:39:24+00:00 2026-06-17T11:39:24+00:00

Since VB6 I rarely use the method DoEvents() in C#. I need to use

  • 0

Since VB6 I rarely use the method DoEvents() in C#.

I need to use the same function now for same purpose

I notice that people use this function (Application.DoEvents Method ):

Application.DoEvents()

but this suits Windows Forms.

Now I’m working with WPF.

Is there a similar method in WPF?

Or maybe I shouldn’t use this method anymore?

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-17T11:39:25+00:00Added an answer on June 17, 2026 at 11:39 am

    Or maybe I shouldn’t use this method anymore?

    This.

    Basically, the use of Application.DoEvents() is almost always an indication that you’ve got a long-running task which should be executed on a different thread, calling back to the UI thread where UI access is required.

    Application.DoEvents() is basically a hack people use when they don’t want to take the time to do things properly – at least in the vast majority of cases.

    There are various ways of writing long-running tasks which interact with the UI, depending on which versions of the language/framework you’re using, and what your long-running task consists of. Options to consider:

    • Explicitly creating a new thread
    • Explicitly using the thread pool
    • Using BackgroundWorker
    • Using the Task Parallel Library (TPL) – requires .NET 4+
    • Using asynchronous APIs, which is much simpler as of .NET 4.5 / C# 5
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

It's been yonks since I've done any VB6... I need to take control of
I recently noticed the CallByName keyword in VB6. Since this takes a object, procedure
Since now I have only used plugin for editing and the way I use
I have the following legacy VB6 function that I want to call from C#.
Since performance of string concatenation is quite weak in VB6 I'm testing several StringBuilder
Since REST is stateless, each request that comes in has no knowledge of the
Since input and raw_input() stop the program from running anymore, I want to use
Ever since I moved from VB6 to VB.NET somewhere in 2005, I've been using
Since there doesn't seem to be any way to load old VB6 (ActiveReports) reports
So, I've got a single VB6 executable that references multiple VB6 COM DLLs. Is

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.