Base Form wont go away

  • Thread starter Thread starter Bob Ranck
  • Start date Start date
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.
 
try to make sure that only workingform gets mdiparent property refer to mdi
window and not baseform.

Rajesh patel
 
I guess I thought that this( -"WorkingForm.Show") was
just a reference to the working Form perhaps I'm missing
something here.

Bob Ranck
WorkingForm
-----Original Message-----
try to make sure that only workingform gets mdiparent property refer to mdi
window and not baseform.

Rajesh patel

Bob Ranck said:
[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.


.
 
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 - -

Can you show us the code you use to call the WorkingForm? Can you post a
simple example that illustrates the problem you are seeing?

Chris
 
I tried sending you a direct email but got it back
with a bad address.

Be sure to remove the "lunchmeat" from my email address. It's there to
prevent spammers from getting my e-mail
 
Back
Top