c# - Open a Form Dialog after x seconds -


i'm looking impliment method executes potentially lengthy or short task. have 'loading' dialog , needs shown after 3 seconds while allowing main execution go ahead. far i've thought using timer:

        var timer = system.diagnostics.stopwatch.startnew();         var elapsedms = timer.elapsedmilliseconds;          if(elapsedms == 3000)         {            loader.show();         } 

but obvious problem if statement passed. have suggestion how approached?


Comments

Popular posts from this blog

sql - invalid in the select list because it is not contained in either an aggregate function -

Angularjs unit testing - ng-disabled not working when adding text to textarea -

How to start daemon on android by adb -