c# - VSTO splash screen or progress bar -


i have project i'm doing

microsoft vsto (office 2013 excel)  

i have things make calls take maybe 10 seconds come back.

ideally display progress bar or status... after lot of searching found article titled:

how create splash screen window vsto applications? http://www.datazx.cn/fv7p5a/xw/oa2v/2q7xs6/mcccjfti-988m-f8r8-8d44-bstb4rfsi4xm23rsdfd.html

so started creating code in form, realize need call within methods , attach events etc...

the article says

"display modal form on background thread"   best way this? 

i find easier use modal less form on main thread , far haven't seen problem modal less approach. code below

var splashwindow = new splashwindow(); splashwindow.show(); splashwindow.setmessage("starting please wait..."); dosomework(splashwindow); splashwindow.close(); 

Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -