Private Shared Sub Main()
' Form1 in this Application.
' Form2 in this application.
.. if you want Form2 to open after Form1 exits. There's no going back. When Form2 closes, the programs end.
Public Class MyApp
Public Sub New()
Me.ShutdownStyle = ShutdownMode.AfterAllFormsClose
Me.MainForm = New Form1()
NotInheritable Class Program
Private Sub New()
Private Shared Sub Main(args As String())
Dim app As New MyApp()
You can now close your startup form (Form1) without problems. Your program will exit when the last form is closed.
I Developed application in C# with crystal reports and created setup file in third party (Advance) Installer.When i installed my application on client system application is working but ...