In a simple program as below

Public Class Form1
Inherits System.Windows.Forms.Form

Private Sub MenuItem4_Click(ByVal sender As System.Object,
ByVal e As System.EventArgs) Handles MenuItem4.Click

Dim NewMDIChild As New Form2()

On Error GoTo ErrorHandler

'Set the Parent Form of the Child window.
NewMDIChild.MdiParent = Me

'Display the new form.
NewMDIChild.Show()
Exit Sub

ErrorHandler:
MsgBox(Err.Description, MsgBoxStyle.Critical)
End Sub

End Class

The program display the child form then application abruptly end but says application

I Am Pasting Output Below :


'DefaultDomain': Loaded 'c:\winnt\microsoft.net\framework\v1.0.3705\mscorlib.dll', No symbols loaded.
'Sort': Loaded 'C:\WorkingFolder\Sort.Net\bin\Sort.exe', Symbols loaded.
'Sort.exe': Loaded 'c:\winnt\assembly\gac\system.windows.forms\1.0.3300.0__b77a5c561934e089\system.windows.forms.dll', No symbols loaded.
'Sort.exe': Loaded 'c:\winnt\assembly\gac\system\1.0.3300.0__b77a5c561934e089\system.dll', No symbols loaded.
'Sort.exe': Loaded 'c:\winnt\assembly\gac\system.drawing\1.0.3300.0__b03f5f7f11d50a3a\system.drawing.dll', No symbols loaded.
'Sort.exe': Loaded 'c:\winnt\assembly\gac\microsoft.data.odbc\1.0.3300.0__b77a5c561934e089\microsoft.data.odbc.dll', No symbols loaded.
'Sort.exe': Loaded 'c:\winnt\assembly\gac\system.data\1.0.3300.0__b77a5c561934e089\system.data.dll', No symbols loaded.
'Sort.exe': Loaded 'c:\winnt\assembly\gac\microsoft.visualbasic\7.0.3300.0__b03f5f7f11d50a3a\microsoft.visualbasic.dll' , No symbols loaded.
'Sort.exe': Loaded 'c:\winnt\assembly\gac\accessibility\1.0.3300.0__b03f5f7f11d50a3a\accessibility.dll', No symbols loaded.
'Sort.exe': Loaded 'c:\winnt\assembly\gac\microsoft.visualbasic.compatibility\7.0.3300.0__b03f5f7f11d50a3a\microsoft.vi sualbasic.compatibility.dll', No symbols loaded.
'Sort.exe': Loaded 'c:\workingfolder\sort.net\bin\axinterop.mscomctllib.dll', No symbols loaded.
'Sort.exe': Loaded 'c:\workingfolder\sort.net\bin\interop.mscomctllib.dll', No symbols loaded.
The program '[2608] WindowsApplication.exe' has exited with code 0 (0x0).


Please Help me out of this...

Thanks in Advance.

Sort.