An unhandled exception of type 'System.StackOverflowException' occurred in system.win

upul

New member
Joined
Mar 7, 2006
Messages
2
Location
Colombo, Sri Lanka
Programming Experience
3-5
Dear all
I have added a form to a project .
I set Ismdicontainter = true and design the menu .
After that I have added Status bar control from VB 6.0 (Because I couldn't put the Caps, Num Lock)
After that I have added another form
I called Form1 as a Parent and Form2 as a Child
ok.
Then I code Form1_Load() event as follows:
Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
Dim frm2 As Form2 = New Form2
frm2.MdiParent = Me
frm2.Show()
End Sub
When I run this program it says
An unhandled exception of type 'System.StackOverflowException' occurred in system.windows.forms.dll

So guys what would be the error.
Any help appreciated!

To get the good idea of my prbolem I attached source code also.

upul
 

Attachments

  • WindowsApplication21.zip
    193.7 KB · Views: 20
Back
Top