Results 1 to 2 of 2

Thread: Problem in Display MDI Child

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2002
    Posts
    3

    Problem in Display MDI Child

    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.

  2. #2
    Lively Member
    Join Date
    Jan 2002
    Location
    Malaysia
    Posts
    64
    your code is fine.
    but check 2 things

    1. Your start up form is Form 1

    2. Your start up form's IsMdiContainer property has been set to true.

    If you have done both of these. Then there should be no problem whatsoever

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width