Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VSTO splash screen or progress bar

I have a project that I'm doing with

Microsoft VSTO (office 2013 excel) 

I have certain things that make calls that take maybe 10 seconds to come back.

Ideally I would like to display an progress bar or some status... After a lot of searching I found an article that is titled:

How do I create a splash screen window for the VSTO applications? http://www.datazx.cn/Fv7p5a/xw/oa2v/2q7xs6/mcccjfti-988m-f8r8-8d44-bstb4rfsi4xm23rsdfd.html

So I started creating this code in a form, but then I realize that I need to call it up within my methods and really attach events etc...

The article says to

"display a modal form on a background thread"   What is the best way to do this?

1 Answers

I find it easier to use modal less form on main thread and so far haven't seen any problem with modal less approach. Something like code below

var splashWindow = new SplashWindow();
splashWindow.Show();
splashWindow.SetMessage("Starting please wait...");
DoSomeWork(splashWindow);
splashWindow.Close();
like image 101
Brijesh Mishra Avatar answered Oct 21 '25 18:10

Brijesh Mishra