B
Bob Ranck
[VB WinForm]
Originally posted in General, but hope to have better
luck over here in Forms.
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)
Since my only call is -"WorkingForm.Show", My question is
how do you (what code would you use to) close the base
form or even better how do you keep from opening it and
make it act more like an abstract form
Originally posted in General, but hope to have better
luck over here in Forms.
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)
Since my only call is -"WorkingForm.Show", My question is
how do you (what code would you use to) close the base
form or even better how do you keep from opening it and
make it act more like an abstract form