I have 3 years in VB6, but am a newbie to VB.NET. I have just begun a small app in .NET, and have created a MDI parent form with 2 child forms.
This is probably a simple thing I don't recognize since I am new to .NET. Basically my problem is this: When I successfully build and then run the app in VS, the forms load and then instantly unload and thus the program terminates.
I have a Main Sub in a Module as my startup procedure. In that sub, I create an instance of the MDI parent form (class is called fclsMain) like this:
Dim frmMain as New fclsMain()
fclsMain.Show()
I elected to do this because using the MDI form as the startup object did not allow me to refer back to it and its properties and methods from the MDI child forms. Creating an object of my MDI parent form class as above let me do this.
Why does the form instantly unload? What am I missing here? Thanks for any suggestions...
This is probably a simple thing I don't recognize since I am new to .NET. Basically my problem is this: When I successfully build and then run the app in VS, the forms load and then instantly unload and thus the program terminates.
I have a Main Sub in a Module as my startup procedure. In that sub, I create an instance of the MDI parent form (class is called fclsMain) like this:
Dim frmMain as New fclsMain()
fclsMain.Show()
I elected to do this because using the MDI form as the startup object did not allow me to refer back to it and its properties and methods from the MDI child forms. Creating an object of my MDI parent form class as above let me do this.
Why does the form instantly unload? What am I missing here? Thanks for any suggestions...