WinForms - Activity IndicatorMaking a WinForms TextBox behave like your browser's address barCentering controls within a form in .NET (Winforms)?Control vs UserControl in WinForms?Split button in .NET WinformsImplement WinForms using WPF?How can I create a slider/selector in my iPhone app like the Mac OS X dashboard widget slider/selector?Draw horizontal divider in winformsWYSIWYG Editor in .NETTesting Complex Custom WinForms ControlWays of isolating cause of unresponsive Winforms GUI

A Word/Phrase for the Process of Classifying Something as a Sin

Is God unknowable?

Understanding the point of a kölsche Witz

What ability do tools use?

Are differences between uniformly distributed numbers uniformly distributed?

Lengthened voiced stops and the airstream through the nose

What should I call bands of armed men in the Middle Ages?

Why did Gandalf use a sword against the Balrog?

How to remove ambiguity: "... lives in the city of H, the capital of the province of NS, WHERE the unemployment rate is ..."?

The cat ate your input again!

Bitcoin successfully deducted on sender wallet but did not reach receiver wallet

Do I have to cite common CS algorithms?

Super Duper Vdd stiffening required on 555 timer, what is the best way?

How many people would you need to pull a whale over cobblestone streets?

Not going forward with internship interview process

Heat equation: Squiggly lines

Do beef farmed pastures net remove carbon emissions?

How would timezones work on a planet 100 times the size of our Earth

How can Radagast come across Gandalf and Thorin's company?

Solution to German Tank Problem

0xF1 opcode-prefix on i80286

Is this n-speak?

How to reduce Sinas Chinam

Is there any way to stop a user from creating executables and running them?



WinForms - Activity Indicator


Making a WinForms TextBox behave like your browser's address barCentering controls within a form in .NET (Winforms)?Control vs UserControl in WinForms?Split button in .NET WinformsImplement WinForms using WPF?How can I create a slider/selector in my iPhone app like the Mac OS X dashboard widget slider/selector?Draw horizontal divider in winformsWYSIWYG Editor in .NETTesting Complex Custom WinForms ControlWays of isolating cause of unresponsive Winforms GUI






.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty margin-bottom:0;








2















In a WinForms application, I want to provide visual feedback that a looping background procedure is ongoing (It isn't something that is initiated by the user or blocks them from using the UI)



Edit - It is going on all the time, looped. The user doesn't need to know when an iteration starts or finishes.



I'm thinking some kind of small, square, looping animation. Something like the segmented "spinner" often used in Mac/iPhone applications.



spinner http://img12.imageshack.us/img12/4402/spinner.png



Is there a built-in WinForms control that is a similar idea? If not, what's the best way to go about this?










share|improve this question





















  • 1





    What about using the Wait cursor?

    – John Saunders
    Jul 7 '09 at 11:00











  • Can that animation be placed on the form? It will be in this state virtually all the time (it's essentially confirmation that the user is being shown live/auto-refreshed data), so I don't want to change the mouse cursor.

    – xyz
    Jul 7 '09 at 11:11

















2















In a WinForms application, I want to provide visual feedback that a looping background procedure is ongoing (It isn't something that is initiated by the user or blocks them from using the UI)



Edit - It is going on all the time, looped. The user doesn't need to know when an iteration starts or finishes.



I'm thinking some kind of small, square, looping animation. Something like the segmented "spinner" often used in Mac/iPhone applications.



spinner http://img12.imageshack.us/img12/4402/spinner.png



Is there a built-in WinForms control that is a similar idea? If not, what's the best way to go about this?










share|improve this question





















  • 1





    What about using the Wait cursor?

    – John Saunders
    Jul 7 '09 at 11:00











  • Can that animation be placed on the form? It will be in this state virtually all the time (it's essentially confirmation that the user is being shown live/auto-refreshed data), so I don't want to change the mouse cursor.

    – xyz
    Jul 7 '09 at 11:11













2












2








2


1






In a WinForms application, I want to provide visual feedback that a looping background procedure is ongoing (It isn't something that is initiated by the user or blocks them from using the UI)



Edit - It is going on all the time, looped. The user doesn't need to know when an iteration starts or finishes.



I'm thinking some kind of small, square, looping animation. Something like the segmented "spinner" often used in Mac/iPhone applications.



spinner http://img12.imageshack.us/img12/4402/spinner.png



Is there a built-in WinForms control that is a similar idea? If not, what's the best way to go about this?










share|improve this question
















In a WinForms application, I want to provide visual feedback that a looping background procedure is ongoing (It isn't something that is initiated by the user or blocks them from using the UI)



Edit - It is going on all the time, looped. The user doesn't need to know when an iteration starts or finishes.



I'm thinking some kind of small, square, looping animation. Something like the segmented "spinner" often used in Mac/iPhone applications.



spinner http://img12.imageshack.us/img12/4402/spinner.png



Is there a built-in WinForms control that is a similar idea? If not, what's the best way to go about this?







.net winforms user-interface controls






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited Jul 7 '09 at 11:15







xyz

















asked Jul 7 '09 at 10:56









xyzxyz

14.1k26 gold badges91 silver badges121 bronze badges




14.1k26 gold badges91 silver badges121 bronze badges










  • 1





    What about using the Wait cursor?

    – John Saunders
    Jul 7 '09 at 11:00











  • Can that animation be placed on the form? It will be in this state virtually all the time (it's essentially confirmation that the user is being shown live/auto-refreshed data), so I don't want to change the mouse cursor.

    – xyz
    Jul 7 '09 at 11:11












  • 1





    What about using the Wait cursor?

    – John Saunders
    Jul 7 '09 at 11:00











  • Can that animation be placed on the form? It will be in this state virtually all the time (it's essentially confirmation that the user is being shown live/auto-refreshed data), so I don't want to change the mouse cursor.

    – xyz
    Jul 7 '09 at 11:11







1




1





What about using the Wait cursor?

– John Saunders
Jul 7 '09 at 11:00





What about using the Wait cursor?

– John Saunders
Jul 7 '09 at 11:00













Can that animation be placed on the form? It will be in this state virtually all the time (it's essentially confirmation that the user is being shown live/auto-refreshed data), so I don't want to change the mouse cursor.

– xyz
Jul 7 '09 at 11:11





Can that animation be placed on the form? It will be in this state virtually all the time (it's essentially confirmation that the user is being shown live/auto-refreshed data), so I don't want to change the mouse cursor.

– xyz
Jul 7 '09 at 11:11












3 Answers
3






active

oldest

votes


















23














Just drop an animated GIF on form and make sure you're not blocking the UI thread:



alt text






share|improve this answer






















  • 1





    You could even hide/show the animated gif using a delegate in the background process when said process is running...this seems the simplest solution

    – Nick DeMayo
    Jul 7 '09 at 11:43











  • +1 for such a great link

    – Chris B
    Sep 2 '11 at 9:50


















2














Instead of writing this



public void DoWork()

try

this.Cursor = Cursors.WaitCursor;
DoSomeBigThing();
. . . .

catch()

. . . ..

finally

. . . .
this.Cursor = Cursors.Default;




  1. Create your own mouse cursor (.cur file) with some free tools (Google or Bing for that)


  2. Use AutoWaitCursor and set your mouse cursor to your own created cursor



    Cursor myCursor = new Cursor("myCoolCursor.cur");







share|improve this answer



























  • github.com/rluiten/WinForm-AutoWaitCursor-Problem/blob/master/…

    – Peter Gfader
    Mar 8 '17 at 15:50


















1














Use either a custom developed threading model, or the BackgroundWorker.



Let the background thread periodically post events back to your main GUI thread using a delegate handler, take thread safety into account, or using the ProgressChanged event if you are using the BackgroundWorker.






share|improve this answer



























    Your Answer






    StackExchange.ifUsing("editor", function ()
    StackExchange.using("externalEditor", function ()
    StackExchange.using("snippets", function ()
    StackExchange.snippets.init();
    );
    );
    , "code-snippets");

    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "1"
    ;
    initTagRenderer("".split(" "), "".split(" "), channelOptions);

    StackExchange.using("externalEditor", function()
    // Have to fire editor after snippets, if snippets enabled
    if (StackExchange.settings.snippets.snippetsEnabled)
    StackExchange.using("snippets", function()
    createEditor();
    );

    else
    createEditor();

    );

    function createEditor()
    StackExchange.prepareEditor(
    heartbeatType: 'answer',
    autoActivateHeartbeat: false,
    convertImagesToLinks: true,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: 10,
    bindNavPrevention: true,
    postfix: "",
    imageUploader:
    brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
    contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
    allowUrls: true
    ,
    onDemand: true,
    discardSelector: ".discard-answer"
    ,immediatelyShowMarkdownHelp:true
    );



    );













    draft saved

    draft discarded


















    StackExchange.ready(
    function ()
    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f1091659%2fwinforms-activity-indicator%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    3 Answers
    3






    active

    oldest

    votes








    3 Answers
    3






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    23














    Just drop an animated GIF on form and make sure you're not blocking the UI thread:



    alt text






    share|improve this answer






















    • 1





      You could even hide/show the animated gif using a delegate in the background process when said process is running...this seems the simplest solution

      – Nick DeMayo
      Jul 7 '09 at 11:43











    • +1 for such a great link

      – Chris B
      Sep 2 '11 at 9:50















    23














    Just drop an animated GIF on form and make sure you're not blocking the UI thread:



    alt text






    share|improve this answer






















    • 1





      You could even hide/show the animated gif using a delegate in the background process when said process is running...this seems the simplest solution

      – Nick DeMayo
      Jul 7 '09 at 11:43











    • +1 for such a great link

      – Chris B
      Sep 2 '11 at 9:50













    23












    23








    23







    Just drop an animated GIF on form and make sure you're not blocking the UI thread:



    alt text






    share|improve this answer















    Just drop an animated GIF on form and make sure you're not blocking the UI thread:



    alt text







    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited Mar 27 at 8:59









    Glorfindel

    17.3k11 gold badges53 silver badges75 bronze badges




    17.3k11 gold badges53 silver badges75 bronze badges










    answered Jul 7 '09 at 11:08









    Anton GogolevAnton Gogolev

    93.8k33 gold badges182 silver badges269 bronze badges




    93.8k33 gold badges182 silver badges269 bronze badges










    • 1





      You could even hide/show the animated gif using a delegate in the background process when said process is running...this seems the simplest solution

      – Nick DeMayo
      Jul 7 '09 at 11:43











    • +1 for such a great link

      – Chris B
      Sep 2 '11 at 9:50












    • 1





      You could even hide/show the animated gif using a delegate in the background process when said process is running...this seems the simplest solution

      – Nick DeMayo
      Jul 7 '09 at 11:43











    • +1 for such a great link

      – Chris B
      Sep 2 '11 at 9:50







    1




    1





    You could even hide/show the animated gif using a delegate in the background process when said process is running...this seems the simplest solution

    – Nick DeMayo
    Jul 7 '09 at 11:43





    You could even hide/show the animated gif using a delegate in the background process when said process is running...this seems the simplest solution

    – Nick DeMayo
    Jul 7 '09 at 11:43













    +1 for such a great link

    – Chris B
    Sep 2 '11 at 9:50





    +1 for such a great link

    – Chris B
    Sep 2 '11 at 9:50













    2














    Instead of writing this



    public void DoWork()

    try

    this.Cursor = Cursors.WaitCursor;
    DoSomeBigThing();
    . . . .

    catch()

    . . . ..

    finally

    . . . .
    this.Cursor = Cursors.Default;




    1. Create your own mouse cursor (.cur file) with some free tools (Google or Bing for that)


    2. Use AutoWaitCursor and set your mouse cursor to your own created cursor



      Cursor myCursor = new Cursor("myCoolCursor.cur");







    share|improve this answer



























    • github.com/rluiten/WinForm-AutoWaitCursor-Problem/blob/master/…

      – Peter Gfader
      Mar 8 '17 at 15:50















    2














    Instead of writing this



    public void DoWork()

    try

    this.Cursor = Cursors.WaitCursor;
    DoSomeBigThing();
    . . . .

    catch()

    . . . ..

    finally

    . . . .
    this.Cursor = Cursors.Default;




    1. Create your own mouse cursor (.cur file) with some free tools (Google or Bing for that)


    2. Use AutoWaitCursor and set your mouse cursor to your own created cursor



      Cursor myCursor = new Cursor("myCoolCursor.cur");







    share|improve this answer



























    • github.com/rluiten/WinForm-AutoWaitCursor-Problem/blob/master/…

      – Peter Gfader
      Mar 8 '17 at 15:50













    2












    2








    2







    Instead of writing this



    public void DoWork()

    try

    this.Cursor = Cursors.WaitCursor;
    DoSomeBigThing();
    . . . .

    catch()

    . . . ..

    finally

    . . . .
    this.Cursor = Cursors.Default;




    1. Create your own mouse cursor (.cur file) with some free tools (Google or Bing for that)


    2. Use AutoWaitCursor and set your mouse cursor to your own created cursor



      Cursor myCursor = new Cursor("myCoolCursor.cur");







    share|improve this answer















    Instead of writing this



    public void DoWork()

    try

    this.Cursor = Cursors.WaitCursor;
    DoSomeBigThing();
    . . . .

    catch()

    . . . ..

    finally

    . . . .
    this.Cursor = Cursors.Default;




    1. Create your own mouse cursor (.cur file) with some free tools (Google or Bing for that)


    2. Use AutoWaitCursor and set your mouse cursor to your own created cursor



      Cursor myCursor = new Cursor("myCoolCursor.cur");








    share|improve this answer














    share|improve this answer



    share|improve this answer








    edited May 16 '17 at 20:38









    Chris Weber

    2,4625 gold badges35 silver badges44 bronze badges




    2,4625 gold badges35 silver badges44 bronze badges










    answered Jul 7 '09 at 11:36









    Peter GfaderPeter Gfader

    5,8477 gold badges47 silver badges53 bronze badges




    5,8477 gold badges47 silver badges53 bronze badges















    • github.com/rluiten/WinForm-AutoWaitCursor-Problem/blob/master/…

      – Peter Gfader
      Mar 8 '17 at 15:50

















    • github.com/rluiten/WinForm-AutoWaitCursor-Problem/blob/master/…

      – Peter Gfader
      Mar 8 '17 at 15:50
















    github.com/rluiten/WinForm-AutoWaitCursor-Problem/blob/master/…

    – Peter Gfader
    Mar 8 '17 at 15:50





    github.com/rluiten/WinForm-AutoWaitCursor-Problem/blob/master/…

    – Peter Gfader
    Mar 8 '17 at 15:50











    1














    Use either a custom developed threading model, or the BackgroundWorker.



    Let the background thread periodically post events back to your main GUI thread using a delegate handler, take thread safety into account, or using the ProgressChanged event if you are using the BackgroundWorker.






    share|improve this answer





























      1














      Use either a custom developed threading model, or the BackgroundWorker.



      Let the background thread periodically post events back to your main GUI thread using a delegate handler, take thread safety into account, or using the ProgressChanged event if you are using the BackgroundWorker.






      share|improve this answer



























        1












        1








        1







        Use either a custom developed threading model, or the BackgroundWorker.



        Let the background thread periodically post events back to your main GUI thread using a delegate handler, take thread safety into account, or using the ProgressChanged event if you are using the BackgroundWorker.






        share|improve this answer













        Use either a custom developed threading model, or the BackgroundWorker.



        Let the background thread periodically post events back to your main GUI thread using a delegate handler, take thread safety into account, or using the ProgressChanged event if you are using the BackgroundWorker.







        share|improve this answer












        share|improve this answer



        share|improve this answer










        answered Jul 7 '09 at 11:05









        Magnus JohanssonMagnus Johansson

        21.7k17 gold badges87 silver badges144 bronze badges




        21.7k17 gold badges87 silver badges144 bronze badges






























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Stack Overflow!


            • Please be sure to answer the question. Provide details and share your research!

            But avoid


            • Asking for help, clarification, or responding to other answers.

            • Making statements based on opinion; back them up with references or personal experience.

            To learn more, see our tips on writing great answers.




            draft saved


            draft discarded














            StackExchange.ready(
            function ()
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f1091659%2fwinforms-activity-indicator%23new-answer', 'question_page');

            );

            Post as a guest















            Required, but never shown





















































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown

































            Required, but never shown














            Required, but never shown












            Required, but never shown







            Required, but never shown







            Popular posts from this blog

            Kamusi Yaliyomo Aina za kamusi | Muundo wa kamusi | Faida za kamusi | Dhima ya picha katika kamusi | Marejeo | Tazama pia | Viungo vya nje | UrambazajiKuhusu kamusiGo-SwahiliWiki-KamusiKamusi ya Kiswahili na Kiingerezakuihariri na kuongeza habari

            Swift 4 - func physicsWorld not invoked on collision? The Next CEO of Stack OverflowHow to call Objective-C code from Swift#ifdef replacement in the Swift language@selector() in Swift?#pragma mark in Swift?Swift for loop: for index, element in array?dispatch_after - GCD in Swift?Swift Beta performance: sorting arraysSplit a String into an array in Swift?The use of Swift 3 @objc inference in Swift 4 mode is deprecated?How to optimize UITableViewCell, because my UITableView lags

            Access current req object everywhere in Node.js ExpressWhy are global variables considered bad practice? (node.js)Using req & res across functionsHow do I get the path to the current script with Node.js?What is Node.js' Connect, Express and “middleware”?Node.js w/ express error handling in callbackHow to access the GET parameters after “?” in Express?Modify Node.js req object parametersAccess “app” variable inside of ExpressJS/ConnectJS middleware?Node.js Express app - request objectAngular Http Module considered middleware?Session variables in ExpressJSAdd properties to the req object in expressjs with Typescript