[02/03] Timer / Multithreading in VB.NET Console APP
In my VB.NET Console App, i want to use timers for multithreading functionality. this is my Sub Main
VB Code:
Sub Main()
tmrMain.Enabled = True
tmrMain.Interval = 3000
End Sub
But the application starts and ends, which means that there should be a way to make the console applications wait and pass control to other threads ! how do i do that ?
Re: [02/03] Timer / Multithreading in VB.NET Console APP
Disable your timer when you want the app to end
VB Code:
tmrMain.Enabled = True
tmrMain.Interval = 3000
While tmrMain.Enabled
System.Threading.Thread.CurrentThread.Sleep(10000)
End While