Dialogs showing as seperate Application? Why?

B

Boris Nienke

Hi,

strange problem:
when i show a dialog (.ShowDialog) i expected to get a modal dialog where
the use can enter data, press OK and will come back to the caller-form.

This is true - but:
When i open the dialog and then go to the "running applications"-window i
can see my application AND the dialog! And when i'm using a Task-Switcher
(like PocketPlus, vBar, WisBar, ...) i can switch back to the caller-form
without closing the "modal"-Dialog!!! THIS IS NOT GOOD :-(

Is there a way to get around this problem? Only ONE Application should be
shown in the task-switcher - and when the user clicks on it (to switch to
my App) the current window (for example an opened Dialog) should be shown -
not the main-form if a dialog is open)

Please help

Boris
 
P

Peter Foot [MVP]

The running applications tool uses the captions of top level windows to list
the tasks. A workaround therefore is to hide your main form or set it's Text
property to "" so only the current dialog is listed as currently running.
Then when your dialog closes you can reinstate the original settings.

Peter
 
B

Boris Nienke

The running applications tool uses the captions of top level windows to list
the tasks. A workaround therefore is to hide your main form or set it's Text
property to "" so only the current dialog is listed as currently running.
Then when your dialog closes you can reinstate the original settings.

Booo... :) what a crazy work-a-round ... Thanks anyway - i will change
that in my code.

But i wonder if this is a bug or a feature?
When i do a "ShowDialog()" it should be application-modal... but with CF
the user can open a modal dialog and then switch back to the
caller-window... strange!

Boris
 

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