做一个事务管理功能,实现自动提示功能应该怎么来做啊!!!

sharesoft21 2003-10-21 09:19:13
做一个事务管理功能,实现自动提示功能应该怎么来做啊!!!
在设置事务的时候选择提示时间,时间到的前几天提示
我知道用Windows的托盘程序很好实现,不过小弟是个初学者,不知道怎么做了,还望高手指点!!
...全文
36 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
elite2018 2004-01-18
  • 打赏
  • 举报
回复
using System.ServiceProcess;

namespace WindowsService1
{
public class Service1 : System.ServiceProcess.ServiceBase
{

private System.ComponentModel.Container components = null;

public Service1()
{

InitializeComponent();

}

// 进程的主入口点
static void Main()
{
System.ServiceProcess.ServiceBase[] ServicesToRun;

// 同一进程中可以运行多个用户服务。若要将
//另一个服务添加到此进程,请更改下行
// 以创建另一个服务对象。例如,
//
// ServicesToRun = New System.ServiceProcess.ServiceBase[] {new Service1(), new MySecondUserService()};
//
ServicesToRun = new System.ServiceProcess.ServiceBase[] { new Service1() };

System.ServiceProcess.ServiceBase.Run(ServicesToRun);
}
sharesoft21 2003-10-21
  • 打赏
  • 举报
回复
是啊,但是我写的代码一直出错,做不出来!老兄帮我一下吧!分不够再加
小弟有点急
wolve 2003-10-21
  • 打赏
  • 举报
回复
你指的是不是task schedule啊,建议把它写成window service组件吧,这样稳定性好一些,然后你通过windowcontroller来管理这个组件,至于用不用托盘,也不是很重要,重要的是你要让程序一直在后台运行。

110,499

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • Web++
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧