Problem opening several modal forms

G

Gianco

Hello

My application opens several modal forms (the modal Form1 opens the
modal Form2 that opens the modal Form3 and so on), but, the third and
the successives modal forms.... are not modal!!! Seems that there's a
maximum number of modal forms, is it possible?

Can anyone help me? Is there a workaround to simulate the ShowDialog()
function?

Gianco

PS I'm using VB .NET on Windows CE 4
 
B

Boris Nienke

Hello

My application opens several modal forms (the modal Form1 opens the
modal Form2 that opens the modal Form3 and so on), but, the third and
the successives modal forms.... are not modal!!! Seems that there's a
maximum number of modal forms, is it possible?

maybe... but first of all i would say, that you have a bad
application-design....

A modal dialog should be one-way for the user (for example to show some
options or an about screen).
If you show an options-dialog where the user can click on a button to show
some options for the a specific option... well... bad enough.... but why
the hell would like to go deeper? Think about the user who has to click
back (OK, OK, OK....) not that good.

If you really need such things i would think about a
self-made-calling-stack in the main-form or the first modal-dialog.

Main-Form
|
+--> Modal-Dialog (Dlg1)
|
User presses a button to show 2nd Modal-Dlg.
|
Set a Form-Variable to a specific state
|
+------+ (back to main Form -close Dlg1)
|
Dlg1.BoolShowDlg2 set?
|
+--yes-> Modal-Dialog2 (Dlg2)
|
|
|
|
no
|
...

and so on...

Boris
 
K

Katie Schaeffer [MSFT]

Hi Gianco,

This is a known bug in v1.0. I believe it was fixed in SP1 - so you could
give that a try. Also, as a workaround, you can disable the previous form
in your dialog chain.

Hope that helps,
-Katie

--------------------
| From: (e-mail address removed) (Gianco)
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| Subject: Problem opening several modal forms
| Date: 2 Sep 2003 05:47:00 -0700
| Organization: http://groups.google.com/
| Lines: 13
| Message-ID: <[email protected]>
| NNTP-Posting-Host: 80.204.87.155
| Content-Type: text/plain; charset=ISO-8859-1
| Content-Transfer-Encoding: 8bit
| X-Trace: posting.google.com 1062506821 32106 127.0.0.1 (2 Sep 2003
12:47:01 GMT)
| X-Complaints-To: (e-mail address removed)
| NNTP-Posting-Date: 2 Sep 2003 12:47:01 GMT
| Path:
cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onlin
e.de!newsfeed.freenet.de!newsfeed.news2me.com!sn-xit-02!sn-xit-06!sn-xit-09!
supernews.com!postnews1.google.com!not-for-mail
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:32527
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| Hello
|
| My application opens several modal forms (the modal Form1 opens the
| modal Form2 that opens the modal Form3 and so on), but, the third and
| the successives modal forms.... are not modal!!! Seems that there's a
| maximum number of modal forms, is it possible?
|
| Can anyone help me? Is there a workaround to simulate the ShowDialog()
| function?
|
| Gianco
|
| PS I'm using VB .NET on Windows CE 4
|

This posting is provided "AS IS" with no warranties, and confers no rights.
 

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