|
-
Apr 6th, 2002, 08:19 AM
#1
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
-
May 14th, 2002, 05:41 PM
#2
Junior Member
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
-
May 14th, 2002, 05:43 PM
#3
Junior Member
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
-
May 14th, 2002, 07:58 PM
#4
Lively Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|