Visual C# 開発 Tips
2012年6月22日金曜日
定期実行ルーチン
//定期実行設定
Timer timer = new Timer();
timer.Tick += new EventHandler(abc); //実行ルーチン設定
timer.Interval = 1000; //1秒ごとにabcを実行
timer.Enabled = true; // timer.Start()と同じ
Application.Run(); // ループを開始
ホーム
登録:
投稿 (Atom)