UseWaitCursor Form Property

Posted on 2009-12-16
Last Modified: 2013-11-25
It appears that it would be nice if the UseWaitCursor property on a form would execute on its own thread as the cursor doesn't necessarily change right away.

Does anyone has a suggestion to make this property respond better when it's changed to True?
Question by:BC_Easyrider
    LVL 7

    Expert Comment

    Application.DoEvents() will allow it to update right away.
    LVL 7

    Accepted Solution

    LVL 7

    Expert Comment

    I would also suggest doing a btn.Enabled = False right after the Me.Cursor = Cursors.WaitCursor and before the DoEvents

    Author Closing Comment

    Haven't tested it but it sounds solid.

    Featured Post

    Threat Intelligence Starter Resources

    Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

    Join & Write a Comment

    More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
    Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
    As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
    Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…

    734 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

    Need Help in Real-Time?

    Connect with top rated Experts

    18 Experts available now in Live!

    Get 1:1 Help Now