by Jamie McGlynn (1 Submission)
Category: Custom Controls/Forms/Menus
Compatability: VB.NET
Difficulty: Unknown Difficulty
Originally Published: Sat 28th October 2006
Date Added: Mon 8th February 2021
Rating: (1 Votes)
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
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
No comments have been posted about Allows a program made with VBNET to run without iheriting a form and stopping at the end of the SUB. Why not be the first to post a comment about Allows a program made with VBNET to run without iheriting a form and stopping at the end of the SUB.