C#
An object-oriented and type-safe programming language that has its roots in the C family of languages and includes support for component-oriented programming.
10,286 questions
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
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,