Allows a program made with VBNET to run without iheriting a form and stopping at the end of the SUB
Allows a program made with VBNET to run without iheriting a form and stopping at the end of the SUB MAIN thread, also reduces system memory
Rate Allows a program made with VBNET to run without iheriting a form and stopping at the end of the SUB
(2(2 Vote))
Shared holder As New System.ComponentModel.Container
Shared WithEvents Updater As New System.Windows.Forms.Timer(holder)
'Add components list here, add bracketed 'holder' at end.
Shared Sub Main()
GetUpdates.Interval = 1000
GetUpdates.Start()
'Add startup code here
getinfo()
Application.Run()
End Sub
Shared Sub Update(ByVal o As Object, ByVal ea As EventArgs) Handles Updater.Tick
getinfo()
End Sub
Shared Sub getinfo()
'add data to be updated here
End Sub
End Class
Allows a program made with VBNET to run without iheriting a form and stopping at the end of the SUB Comments
No comments yet — be the first to post one!
Post a Comment