C
Christian Soltenborn
Hi folks,
I'm from the Java world, and I want to play a little bit with VB .NET. I
have a simple question: In Java it is kind of common to have a static
main method which does nothing else then creating an object of the class
it belongs to and then to fall asleep. All real work will be done in the
object. If the program quits, it does this with System.exit(int).
How do I do something like this in VB .NET? I have source like this:
Public Shared Sub Main()
Dim controller = New Controller
End Sub
And, as I expected, the program creates the controller object and then
ends immediately.
I would like to learn how to avoid the "sudden death" of my program,
and I would also like to know the similar method to Java's System.exit()!
Thanks in advance,
Christian
I'm from the Java world, and I want to play a little bit with VB .NET. I
have a simple question: In Java it is kind of common to have a static
main method which does nothing else then creating an object of the class
it belongs to and then to fall asleep. All real work will be done in the
object. If the program quits, it does this with System.exit(int).
How do I do something like this in VB .NET? I have source like this:
Public Shared Sub Main()
Dim controller = New Controller
End Sub
And, as I expected, the program creates the controller object and then
ends immediately.
I would like to learn how to avoid the "sudden death" of my program,
and I would also like to know the similar method to Java's System.exit()!
Thanks in advance,
Christian