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
Post a Comment