OnStart()

JohanNL

Member
Joined
Jan 31, 2008
Messages
7
Programming Experience
10+
When is the Protected Overrides Sub OnStart(ByVal args() As String)
method fired?
 
When the service starts.
 
Watch out though - if you put something in it that takes a really long time then Windows might think that the service hasn't started properly. I usually use OnStart to fire off a timer or another thread or something so it doesn't block.
 
Back
Top