Windows应用程序 [英] Windows Application

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

问题描述




而不是创建Windows服务。

是否可以创建在Windows任务栏中运行的Windows应用程序,如果可能的话当某些事情发生时,应用程序会弹出通知。

我基本上想要做的是每当有新条目写入数据库时​​,会出现一个弹出窗口,告诉你有活动。


然后你可以打开应用程序并查看最新情况。


应用程序已经编写完毕,一切正常。我只需要这个功能


亲切的问候。

Hi

Instead of creating a windows service.
Is it possible to create a windows application that runs in the windows taskbar and if it is possible for the application to have pop up notifications when something happens.

What i basically want to do is whenever a new entry is written into the database, a popup appears telling you that there is activity.

Then you can open the application and check whats going on.

The application is already written and everything works 100%. I just need this functionality

Kind Regards.

推荐答案

你可以.Hide()和.Show()你的应用程序根据需要。

您可以在任务中使用NotifyIcon,它具有自己的ContextMenu,因此您可以选择常用功能,例如显示历史记录,显示配置等。或者你需要的任何东西。
You could .Hide() and .Show() your application as needed.
You could use a NotifyIcon in the tasktry, that has its own ContextMenu so you could select common features like "Show History", "Show Configuration" or whatever you need.


在Windows 7开发中,他们鼓励你不要使用任务。

他们鼓励你使用图标与用户沟通相反。


-Frinny
In Windows 7 development they are encouraging you to not use the tasktry.
They are encouraging you to use icons to communicate with the user instead.

-Frinny


然后,在WinXP结束时,他们开始告诉开发人员不要使用注册表。但我发现他们自己并没有停止使用它。如果他们不能合理地做出改变,他们就会要求其他人做出改变,那么我就不会强迫自己去做。


通过使用图标与之沟通用户你的意思是任务栏上程序按钮中的图标?
Then again, towards the end of WinXP they started telling developers to not use the Registry. But I see that THEY haven''t stopped using it themselves. If they can''t reasonably make a change they are asking others to make then I''m not going to pressure myself into doing it.

By "use icons to communicate with the user" do you mean the icon in the program button on the taskbar?


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

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