Cursor Reset to Default Before System.Windows.Forms.Cursors.Default is executed

Posted on 2006-04-11
Last Modified: 2008-03-03
I have a app in which I have set the cursor to a wait currsor in a button click event.  The cursor does seem to change to an hour class but then resets to a default cursor before the System.Windows.Forms.Cursors.Default is executed.

Are there certain operations that cause this?

Question by:johnnyg123
    LVL 9

    Accepted Solution

    I'm not sure, but you could put it (the hour glass code) in the loop or whatever code you use that you are waiting on.

    Author Comment

    thanks for pointing me in the right direction....

    I was executing a for loop to populate some word form fields.  I guess it reset the cursor to default.  (Not sure why)

    I stuck a  Me.Cursor.Current = System.Windows.Forms.Cursors.WaitCursor inside and all is well.

    Cursor goes back and forth between normal and wait quite a bit but does the trick


    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    Looking for New Ways to Advertise?

    Engage with tech pros in our community with native advertising, as a Vendor Expert, and more.

    Article by: Kraeven
    Introduction Remote Share is a simple remote sharing tool, enabling you to see, add and remove remote or local shares. The application is written in VB.NET targeting the .NET framework 2.0. The source code and the compiled programs have been in…
    If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
    how to add IIS SMTP to handle application/Scanner relays into office 365.
    In this sixth video of the Xpdf series, we discuss and demonstrate the PDFtoPNG utility, which converts a multi-page PDF file to separate color, grayscale, or monochrome PNG files, creating one PNG file for each page in the PDF. It does this via a c…

    794 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