I'm developing VSTO addin using c# for Microsoft Project. What I want is when microsoft project opens up, it should popup the login dialog very first (which I can show without a problem) and till the time login is done, microsoft project window should not load or windowremain hidden. I'm not able to hide or prevent loading the microsoft project window while launching the plugin. I tried few things i.e.
var app = (MSProject.Application)System.Runtime.InteropServices.Marshal.GetActiveObject("MSProject.Application");
app.Visible = false; // doesn't work
app.WindowHide(); // doesn't work
app.AppMinimize(); // works
Any inputs on how I can hide the main window of the project till the time login is done?
Thanks,