如何创建只显示 NotifyIcon 的 WinForm 应用程序?

发布于 2024-07-17 08:28:26 字数 227 浏览 6 评论 0原文

我很确定我以前做过这个,但我不记得我是如何/在哪里找到如何做到这一点的。

我创建了一个新的 WinForm 应用程序,然后将一个通知图标拖到我的设计器上。 我在 Form1.vb 文件中为 NotifyIcon 的行为编写了所需的功能。

我想我记得一些关于向项目添加模块,并将项目设置为启动上述模块而不是表单的事情......但我无法弄清楚/回忆如何保留我已编码到 Form1 中的功能。 vb.

I am pretty sure I've done this before, but I cannot remember how/where I found out how to do this.

I created a new WinForm application then dragged a notify icon onto my designer. I coded my desired functionality for the NotifyIcon's behavior inside the Form1.vb file.

I think I remember something about adding a module to the project, and setting the project to launch the aforementioned module instead of the form...but I can't figure out/recall how to keep the functionality I've coded into Form1.vb.

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

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

发布评论

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

评论(1

鸢与 2024-07-24 08:28:27

Did you try this ? (first result on google, I think I used it too in the past)

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