PC Review


Reply
Thread Tools Rate Thread

Dialogs showing as seperate Application? Why?

 
 
Boris Nienke
Guest
Posts: n/a
 
      1st Dec 2003
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
 
Reply With Quote
 
 
 
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      1st Dec 2003
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

--
Peter Foot
Windows Embedded MVP
OpenNETCF.org Senior Advisor
www.inthehand.com | www.opennetcf.org

"Boris Nienke" <(E-Mail Removed)> wrote in message
news:1kpcwv7y7gen8$.9tr933aeqdqt$.(E-Mail Removed)...
> 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



 
Reply With Quote
 
Boris Nienke
Guest
Posts: n/a
 
      3rd Dec 2003
On Mon, 1 Dec 2003 09:28:58 -0000, Peter Foot [MVP] wrote:

> 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
 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Can SMS be automated to install without desktop showing dialogs sirjacka Microsoft Dot NET 1 9th Jun 2009 09:58 AM
Showing Modal Dialogs kills Session Mantorok Microsoft ASP .NET 0 21st Jun 2006 09:21 AM
Application.GetOpenFilename vs Application.Dialogs(xlDialogsOpen) Paul Martin Microsoft Excel Programming 3 5th Aug 2005 04:44 PM
Dialogs and other forms showing in Running Program List Jon Skeet [C# MVP] Microsoft Dot NET Compact Framework 5 22nd Apr 2004 06:33 PM
Showing dialogs/msgbox when word is the editor Michael King Microsoft Outlook Program Addins 1 29th Oct 2003 04:46 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:01 AM.