做一个事务管理功能,实现自动提示功能应该怎么来做啊!!! 你指的是不是task schedule啊,建议把它写成window service组件吧,这样稳定性好一些,然后你通过windowcontroller来管理这个组件,至于用不用托盘,也不是很重要,重要的是你要让程序一直在后台运行。 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 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); } 如何在资源管理器里打开指定路径 取得窗体输入key的值? email群发问题,请各路高手回答。谢谢。 非压缩位图文件大小的计算问题? 请问用C#怎么通过SOCKS5身份验证? %%%%%%%%%%%%%% 引号的使用问题 %%%%%%%%%%%%%% 妹妹求哥哥一个关于c# is的问题 文件引用问题 编译时出现的错误 请问怎么样给中文编写BASE64编码。 C#中有没有 Beep的功能(如c++中的beep功能),谢谢!~ 难道没有人可以在c#编写的程序中实现xp效果吗?
{
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);
}