我已经为Visual Studio 2008创建了一个加载项,用于打开表单
Form1.Show(this);
如果(在窗体打开时)用户打开/关闭Visual Studio对话框(例如程序集信息),则用户无法重新关注由插件创建的表单.
是否有一些我错过的东西允许用户返回表单?如果我使用Form1.ShowDialog(this),这不会发生,但我希望用户在我的自定义表单打开时看到程序集信息.
加载项实现IWin32Window使用
public System.IntPtr Handle
{
get
{
return new System.IntPtr(_applicationObject.MainWindow.HWnd);
}
}
Run Code Online (Sandbox Code Playgroud)
编辑:重现的步骤
public void Exec(...)
System.Windows.Forms.Form f = new System.Windows.Forms.Form();
f.Show();
Run Code Online (Sandbox Code Playgroud)