如果能,怎样创建?
解决方案 »
- C#程序 通过网络发传真 不需要传真机发送 求教
- 正则表达式如何匹配多组格式相同的数据
- 在DataGridViewColumn中添加一个Combox,Combox不在行中
- 求一个控制台程序,可以实现关机.
- 关于pictureBox的问题
- 代码生成器
- 正则表达式
- ----------------高手,关于DataGrid分页的问题,送100分---------------------------
- 关于treeview的问题
- 对于写C/S结构的程序,VS中有没有非常良好的结构,类似Borland一样的
- 请问可不可以把 tabControl 的各个选项卡按钮移到下边而不是在上边?
- 在制作安装程序时候,怎么自动安装MS SQL Server2000
{
public static void Main()
{
// Create a new Timer with Interval set to 10 seconds.
System.Timers.Timer aTimer = new System.Timers.Timer(10000);
aTimer.Elapsed+=new ElapsedEventHandler(OnTimedEvent);
// Only raise the event the first time Interval elapses.
aTimer.AutoReset = false;
aTimer.Enabled = true;
Console.WriteLine("Press \'q\' to quit the sample.");
while(Console.Read()!='q');
}
// Specify what you want to happen when the event is raised.
private static void OnTimedEvent(object source, ElapsedEventArgs e)
{
Console.WriteLine("Hello World!");
}
}
using System.Timers;class test
{
public static void Main()
{
Timer aTimer = new Timer(10000);
aTimer.Elapsed+=new ElapsedEventHandler(OnTimedEvent);
aTimer.Start();
}
private static void OnTimedEvent(object source, ElapsedEventArgs e)
{
Console.WriteLine( DateTime.Now.Millisecond );
}
}
===============>aTimer.AutoReset = false;
aTimer.Enabled = true;