B
Bob Ranck
[VB WinForm]
Lets say we build a BaseForm with several controls (as an
abstract form). Then we inherit this Base Form as
the "foundation" for a New WorkingForm.
Next we make an MDI Form and call the WorkingForm from
the MDI menu -"WorkingForm.Show". We immediately get an
unusual condition. Although the WorkingForm loads OK - -
- at the menu bar level of the MDI, we have two icons
showing two forms active (one for the WorkingForm and one
for the BaseForm)instead of just one as we would expect.
Next we Close the WorkingForm, but only one of the two
icons goes away, indicating that the BaseForm is still
loaded.
Next if we Open a WorkingForm again we now have three
icons, indicating that we have the WorkingForm and two
BaseForms. (If you continue to open and close forms
eventualy you crash with no more room)
My question is how do you (what code) close the base form
or even better cause it to act more like an abstract form
and not in the first place.
Lets say we build a BaseForm with several controls (as an
abstract form). Then we inherit this Base Form as
the "foundation" for a New WorkingForm.
Next we make an MDI Form and call the WorkingForm from
the MDI menu -"WorkingForm.Show". We immediately get an
unusual condition. Although the WorkingForm loads OK - -
- at the menu bar level of the MDI, we have two icons
showing two forms active (one for the WorkingForm and one
for the BaseForm)instead of just one as we would expect.
Next we Close the WorkingForm, but only one of the two
icons goes away, indicating that the BaseForm is still
loaded.
Next if we Open a WorkingForm again we now have three
icons, indicating that we have the WorkingForm and two
BaseForms. (If you continue to open and close forms
eventualy you crash with no more room)
My question is how do you (what code) close the base form
or even better cause it to act more like an abstract form
and not in the first place.