我们如何在VB.Net控制台应用程序中使用计时器控件?
问题描述:
我正在尝试在控制台应用程序中使用Timer控件。
I am trying to use a Timer control in my console application.
Friend WithEvents XTIMER As System.Windows.Forms.Timer
我正在设置其所有属性。我已将间隔设置为15000毫秒。但是,即使我将计时器控件的启用状态设置为true,tick事件也不会触发。有人可以帮帮我吗?
I am setting all its properties. I have set the interval to 15000 ms. But even when I set the Enabled state of the timer control to be true, the tick event is not firing. Can any one help me out please?