CE4.2 app does not close forms in the taskbar

D

datamodel

hi,

I have an application built for CE 4.2, which has many forms.
Some of the forms close themselves after the user invokes another form,

some don't.
Regardless, the number of window stubs on the taskbar at the bottom of
the screen
just keeps increasing. And by the time I return to the top level form,
i can see all those forms closing at once .

For instance Going
from the main form to --> a menu form that has buttons for New and Edit
forms --> to an Edit or new forms,
The menu form in the code closes itself when the Edit or New forms are
loaded.

leaves three window stubs in the taskbar (representing three open
windows)
if i go from Edit to the New form, and the Edit should close itself.
Again it stays open,
and now i have four windows open.

When i click any one of the window stubs (i don't know what else to
call them) on the taskbar, (opened from earlier) , the corresponding
window becomes focused '
but thankfully no controls on it are active - no response to clicking
on them.

How do I get around this issue? what could i be doing wrong?

I'd like to hear if others have noticed this sort of behavior as well
and how to avoid it.

Thank you.
the clicked window
 
G

Ginny Caughey [MVP]

the clicked window,

If you set the title of each form to an empty string as you leave it, that
should hide it from the taskbar. Then set the title back when the form is
activated.
 
D

datamodel

Thank you for your reply.
Does this also actually close them or do they remain in memory?

My goal is to ensure that a form object (a form's class) is truly
closed
when i call this.Close() .

thanks again.
 
G

Ginny Caughey [MVP]

It only hides the form. If you want it closed, you should call Close().
 
D

datamodel

I do. This behavior occurs with forms that call this.Close() in exit
button events.
 
G

Ginny Caughey [MVP]

I'm not sure that I understand exactly what you want to do that you can't
do.
 
D

datamodel

Hi Ginny,

This suggestion does not work. Its effect is that the window stubs in
the CE taskbar now have no text on them.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top