如何从加载项显示输出窗口?
我目前有一个 Visual Studio 插件,并创建了一个新的输出窗口窗格,我可以在其中成功写入文本。但是,当输出窗口未打开或最小化时,当我在窗格上调用 Activate() 方法时,它不会打开(弹出)。我有什么想法可以实现这一目标吗?
I currently have a visual studio add-in and have created a new output window pane which I can write text to successfully. However, when the output window is not open or it is minimised then it doesn't open (popup) when I call the Activate() method on the pane. Any ideas how I can achieve this?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果您使用外接程序向导创建了外接程序,您应该具有如下所示的 Exec() 方法。我添加了两行,使输出窗口打开并变得可见,无论它最初是关闭的还是最小化的。我在VS2008和VS2010中对此进行了测试。
If you created your Add-in using the Add-in wizard you should have an Exec() method like below. I have added two lines that cause the Output window to open and become visible regardless whether it was originally closed or minimized. I tested this in VS2008 and VS2010.