Danke rs90.
Zu 1) Ich hab schon ausprobiert, aber dann wird nur das Fenster versteckt und das Programm wird nicht beendet.
Das Programm heißt "MyFirstProgram"
MyFirstProgram.exe wird beendet, aber MyFirstProgram.vshost.exe beendet sich nicht.
Wie funktioniert das mit den MsgBox?
Stimmt das?
Code:
MsgBox("Hello World", MsgBoxStyle.Information, "Titel")