Base Form wont go away

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • Bob Ranck

    Base Form wont go away

    [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.Sh ow". 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)instea d 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.


  • Rajesh Patel

    #2
    Re: Base Form wont go away

    try to make sure that only workingform gets mdiparent property refer to mdi
    window and not baseform.

    Rajesh patel

    "Bob Ranck" <ranck@aqsi.net > wrote in message
    news:085501c392 6c$05280d20$a00 1280a@phx.gbl.. .[color=blue]
    > [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.Sh ow". 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)instea d 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.
    >
    >[/color]


    Comment

    • Bob Ranck

      #3
      Re: Base Form wont go away

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

      Bob Ranck
      WorkingForm[color=blue]
      >-----Original Message-----
      >try to make sure that only workingform gets mdiparent[/color]
      property refer to mdi[color=blue]
      >window and not baseform.
      >
      >Rajesh patel
      >
      >"Bob Ranck" <ranck@aqsi.net > wrote in message
      >news:085501c39 26c$05280d20$a0 01280a@phx.gbl. ..[color=green]
      >> [VB WinForm]
      >> Lets say we build a BaseForm with several controls (as[/color][/color]
      an[color=blue][color=green]
      >> 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.Sh ow". We immediately get[/color][/color]
      an[color=blue][color=green]
      >> unusual condition. Although the WorkingForm loads OK -[/color][/color]
      -[color=blue][color=green]
      >> - at the menu bar level of the MDI, we have two icons
      >> showing two forms active (one for the WorkingForm and[/color][/color]
      one[color=blue][color=green]
      >> for the BaseForm)instea d of just one as we would[/color][/color]
      expect.[color=blue][color=green]
      >>
      >> 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[/color][/color]
      form[color=blue][color=green]
      >> or even better cause it to act more like an abstract[/color][/color]
      form[color=blue][color=green]
      >> and not in the first place.
      >>
      >>[/color]
      >
      >
      >.
      >[/color]

      Comment

      • Chris Dunaway

        #4
        Re: Base Form wont go away

        "Bob Ranck" <ranck@aqsi.net > wrote in news:085501c392 6c$05280d20
        $a001280a@phx.g bl:
        [color=blue]
        > Next we make an MDI Form and call the WorkingForm from
        > the MDI menu -"WorkingForm.Sh ow". We immediately get an
        > unusual condition. Although the WorkingForm loads OK - -
        >[/color]

        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

        Comment

        • Bob Ranck

          #5
          Re: Base Form wont go away

          Chris,

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

          Bob[color=blue]
          >-----Original Message-----
          >"Bob Ranck" <ranck@aqsi.net > wrote in[/color]
          news:085501c392 6c$05280d20[color=blue]
          >$a001280a@phx. gbl:
          >[color=green]
          >> Next we make an MDI Form and call the WorkingForm from
          >> the MDI menu -"WorkingForm.Sh ow". We immediately get[/color][/color]
          an[color=blue][color=green]
          >> unusual condition. Although the WorkingForm loads OK -[/color][/color]
          -[color=blue][color=green]
          >>[/color]
          >
          >Can you show us the code you use to call the[/color]
          WorkingForm? Can you post a[color=blue]
          >simple example that illustrates the problem you are[/color]
          seeing?[color=blue]
          >
          >Chris
          >.
          >[/color]

          Comment

          • Chris Dunaway

            #6
            Re: Base Form wont go away

            "Bob Ranck" <anonymous@disc ussions.microso ft.com> wrote in
            news:2af6501c39 2bf$43c83930$a6 01280a@phx.gbl:
            [color=blue]
            > I tried sending you a direct email but got it back
            > with a bad address.[/color]

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

            Comment

            Working...