如何使用 C# 在系统托盘中显示表格描述?
我的表格列是ID(PK),标题,描述。我想在系统托盘中显示表格行值的详细信息,这样当我单击系统托盘图标时,它将显示表格的标题和描述。
请帮我。
My table columns are ID(PK),Title,Description.and i want to display the details of the table row values in the system tray,so that when i click the system tray icon,it will display the Title and Description of the table.
Please help me.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
你不能(据我所知)在 asp.net 中这样做。 asp.net 代码无法访问本地计算机资源。这是一件好事,因为您不希望任何旧网站破坏您的计算机。这就是病毒和木马(天哪!)的传播方式。现在,您可能可以创建一个浏览器插件或 Active-X 控件之类的东西,使其按照您想要的方式工作。
you can not (AFIK) do that in asp.net. asp.net code has NO access to local machine resources. this is a Good Thing (tm) because you don't want any old web site mucking about your computer. this is how viruses and trojans (oh my!) could be spread. Now, that said, you probably could create a browser plugin or active-x control sort of thing to make it work like you want.
简单来说,您无法通过合法方式访问asp.net中的客户端计算机。对于winforms:
您可以阅读这篇文章:正确的方法是什么最小化 C# WinForms 应用程序?
Simply you can't gain access to the client machine in asp.net through legal way.For winforms:
you can read this post :What's the proper way to minimize to tray a C# WinForms app?
我认为关于 ASP.NET 应用程序访问本地计算机的内容已经说得够多了。有关访问系统托盘的信息,请参阅以下问题和解答:使用系统托盘
I think enough things were said about ASP.NET application accessing local machine. For accessing system tray, please refer to following question and answer: working with system tray