如何使用c#在我的电脑启动窗口应用程序时通知生日 [英] How do I Notify Birthdays while my pc starts in window application using c#

查看:123
本文介绍了如何使用c#在我的电脑启动窗口应用程序时通知生日的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在开发一个Windows应用程序,我希望生日提醒客户端。所以我想要的是,当我的电脑启动时,一个程序文件应该自动运行(即没有点击设置图标)并从数据库中获取记录并显示它以通知图标。如果你有任何想法,请告诉流程。

先谢谢

I am developing an windows application in which I want birthdays reminder of the clients. So what I want is, when my pc starts, a program file should run automatically(i.e without click on the icon of setup) and fetch the records from database and show it to notify icon. If you hae any idea regarding this please tell the flow.
Thanks in advance

推荐答案

Quote:

..显示它通知图标



目前尚不清楚哪个通知图标,你可以尝试实施以下方法 -

1.编写一个程序(可能是一个控制台应用程序)从DB获取出生日期并编写一个逻辑来过滤当前系统日期的bithdates并显示它们。将exe文件放在Startup文件夹中。



2.编写一个Windows服务并在代码中使用相同的逻辑并确保逻辑执行 OnStart 事件。设计一个窗体表格并显示此表格以及此活动的数据。



如果您的要求与之匹配,您可以查看以下文章。

C#中的生日提醒 [ ^ ]



希望,它有帮助:)


It's not clear which notify icon, stll you can try implementing following approaches-
1. Write a program (May be a console application) to fetch date of births from DB and write a logic to filter bithdates with current system date and display the them. Put the exe file in Startup folder.

2. Write a windows service and on code the same logic and make sure that logic gets executed OnStart event. Design a windows form and display this form with data on this event call.

You can check the following article if your requirement matches with it.
Birthday Reminder in C#[^]

Hope, it helps :)


这篇关于如何使用c#在我的电脑启动窗口应用程序时通知生日的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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