Application not responding

Hi,

Is there a way to the application do not show the status (Not responding) in windows Xp for example, when it's running a big operation

I tried removing the "Causesvalidation" but didn't worked !

I'm using this.refresh() sometimes, and does not work as well.

Thanks




Answer this question

Application not responding

  • PiGuy

    Thanks a lot...

    Can you give me an example of the DoEvents



  • BALA SINGAM - My

    If you have a process that is running that long, for the sake of the user experience you might want to look at tossing it over to a thread to help improve the User experience even more.

  • Uli Hofer

    Thanks for the advice

  • Dan Mikkelsen

    Your application is really not responding, thus the XP diagnostic. To fix this, either call DoEvents from inside your processing loop or use the BackgroundWorker component to do the processing.

  • Amde

    In C#:
    Application.DoEvents();



  • Anatoly Porsev

    Find a place somewhere inside your processing code, preferrably in a loop that gets executed at least once a second and write:
    DoEvents



  • ititrx

    I got the following errors

    Visual Studio Projects\Leitor\Form1.cs(208): Only assignment, call, increment, decrement, and new object expressions can be used as a statement

    and

    Visual Studio Projects\Leitor\Form1.cs(208): The name 'DoEvents' does not exist in the class or namespace 'Leitor.Form1'



  • Application not responding