Results 1 to 4 of 4

Thread: MDI Error

  1. #1
    egiggey
    Guest

    MDI Error

    Hi All
    I'm building a mdi app and on one of my forms when I do the following

    Dim editor As New frmBookmark()
    editor.lblbookmarkdir.Text = bookmarkpath
    editor.MdiParent = Me
    editor.Show()

    Most of the time I get the following error
    An unhandled exception of type 'System.OutOfMemoryException' occurred in system.windows.forms.dll

    Additional information: Error creating window handle.

    i only get this error with this form all the others work perfectly
    any ideas

  2. #2
    Junior Member
    Join Date
    Feb 2002
    Location
    Colorado
    Posts
    23

    Same error, different scenario

    I am getting the same error as well, but from a different scenario. On a child form, I have a panel with some controls on it. The panel is not visible at the time of the form loading. I have a button that will set the panel.visible property to true. However, when I click on this button, I get the same error as mentioned in the post below. I've checked microsoft's web site, but can find nothing. Does anyone know what this error means and how to fix it?
    LDD
    ----------------
    "Character is what you do in the dark." Dwight L. Moody

  3. #3
    Junior Member
    Join Date
    Feb 2002
    Location
    Colorado
    Posts
    23

    Oops, wrong direction

    I mean, the same error as the post ABOVE, not BELOW.
    LDD
    ----------------
    "Character is what you do in the dark." Dwight L. Moody

  4. #4
    Lively Member
    Join Date
    May 2002
    Posts
    94
    Code:
      Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Me.IsMdiContainer = True
        Dim xFrm As New Form2()
        xFrm.MdiParent = Me
        xFrm.Show()
      End Sub
    Enjoy

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