没有 UI 的 VB.net 程序 [英] VB.net program with no UI

查看:26
本文介绍了没有 UI 的 VB.net 程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在通过文本文件制作一个 VB.net 程序,我正在通过命令行使用 vbc.exe 编译它.我试图让一个简单的程序在我的计算机后台运行.问题是,它显示烦人的控制台窗口.我怎么什么都没有显示?没有表格,没有控制台?

I'm making a VB.net program via a text file and I'm compiling it using vbc.exe via command line. I'm trying to get just a simple program to run in the background of my computer. Problem is, it displays the annoying console window. How do I get nothing to show? No form, no console?

推荐答案

我认为您需要某种形式来保持消息循环的进行.

I think you need a form of some kind to keep the message loop going.

可能是 NotifyIcon 类型的程序.它会使它远离任务栏和桌面区域.

Maybe a NotifyIcon type program. It would keep it away from the task bar and desktop areas.

然后从使用 Windows 的图标的自定义"菜单中将 NotifyIcon 自定义为仅显示通知".

And then customize the NotifyIcon to "Only Show Notifications" from the "Customize" menu for your icon using Windows.

这篇关于没有 UI 的 VB.net 程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆