如何从 Visual Studio 扩展显示弹出窗口(不是工具窗口)?

发布于 2024-11-19 15:33:34 字数 50 浏览 8 评论 0原文

我想低调地要求我的扩展程序的用户在使用 2 周后进行捐赠。 非模态窗口比模态窗口更好。

I want to unobtrusively ask users of my extension to donate after 2 weeks of usage.
A non-modal window would be better than a modal one.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

驱逐舰岛风号 2024-11-26 15:33:34

是什么阻止您使用普通的 WinForm 表单并调用它的 DoModal() 方法。尝试找到 Visual Studio 的顶层窗口作为父窗口传入。

然而,您的用户会讨厌您,当他们启动 Visual Studio 时,发现早上喝完咖啡后,它就挡住了您的窗户!

What stopping you using a normal WinForm Form and calling it's DoModal() method. Try to find the top level windows of Visual Studio to pass in as the parent.

However your users make hate you, when they start up Visual Studio, and find that after the morning cut of coffee, it has blocked on your window!

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文