Hi Romain,
This sounds like a different issue then the one I mentioned earlier. If
you get any sort of notification when this other application's dialog is
going to close - or if it's a modal dialog (which it sounds like it is),
you can PInvoke to 'SetForegroundWindow' to force your application up to
the front.
The only other thing I would recommend is to check that your forms arn't
using a Borderless window. These windows have the WS_POPUP style and seem
to have their z-order handled differently by Pocket PC.
Hope that helps,
-Katie
This posting is provided "AS IS" with no warranties, and confers no rights.
***.Net Compact Framework Info***
Faq:
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.a
spx
QuickStarts:
http://samples.gotdotnet.com/quickstart/CompactFramework/
Samples:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/h
tml/CompactfxTechArt.asp
--------------------
| From: "Romain TAILLANDIER" <
[email protected]>
| References: <
[email protected]>
<
[email protected]>
| Subject: Re: My form disappear ...
| Date: Fri, 9 Jan 2004 10:29:38 +0100
| Lines: 99
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| Message-ID: <#up#
[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: dyn-81-166-253-200.ppp.tiscali.fr 81.166.253.200
| Path:
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP09.
phx.gbl
| Xref: cpmsftngxa07.phx.gbl
microsoft.public.dotnet.framework.compactframework:42535
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| thank you katie,
|
| the post you reply was interrupted by a bad command from my part ...
| I have given a few more details in a second post, i copy past it here to
| give you that few details you miss just in case ...
|
| <quote>
| I have a class wich is some kind of open file dialog, named DllManager.
The
| method static GetDll() show a form containing a combox box and listing few
| dlls, when validating (ok button), GetDll return the full path of the
| selected dll.
| this static method isn't the problem.
|
| When i call this static method from my MainForm, by clicking on a button,
| after the GetDll form disappear, my MainForm disapear too, or doesn't
| reappear. seems to completely disappear, and i get the windows background,
| the green hill and the bleu sky . . . . ...
| When i call the same GetDll method from an other form, all is working fine
| </quote>
|
|
| In fact in a first time i effectivelly call it in the onload event ...
| then in the constructor, and in a button call, then in a menu event Etc
...
| in this form, the bug still remind whereever i call this open dll method
|
| but if i call the method in another form
| Can you tell me more about that bug ?
|
| thanks
| ROM
|
|
| "Katie Schaeffer [MSFT]" <
[email protected]> a écrit dans le
| message de news: (e-mail address removed)...
| > Hi Romain,
| >
| > This is a known bug. Instead of showing this open file dialog in the
| > constructor, show it in the OnLoad event.
| >
| > -Katie
| >
| > This posting is provided "AS IS" with no warranties, and confers no
| rights.
| >
| > ***.Net Compact Framework Info***
| > Faq:
| >
|
http://msdn.microsoft.com/mobility/prodtechinfo/devtools/netcf/FAQ/default.a
| > spx
| > QuickStarts:
http://samples.gotdotnet.com/quickstart/CompactFramework/
| > Samples:
| >
|
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dnnetcomp/h
| > tml/CompactfxTechArt.asp
| >
| > --------------------
| > | From: "Romain TAILLANDIER" <
[email protected]>
| > | Subject: My form disappear ...
| > | Date: Thu, 8 Jan 2004 10:50:31 +0100
| > | Lines: 17
| > | X-Priority: 3
| > | X-MSMail-Priority: Normal
| > | X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
| > | X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
| > | Message-ID: <
[email protected]>
| > | Newsgroups: microsoft.public.dotnet.framework.compactframework
| > | NNTP-Posting-Host: dyn-81-166-220-94.ppp.tiscali.fr 81.166.220.94
| > | Path:
| >
|
cpmsftngxa07.phx.gbl!cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.
| > phx.gbl
| > | Xref: cpmsftngxa07.phx.gbl
| > microsoft.public.dotnet.framework.compactframework:42433
| > | X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
| > |
| > | Hi group
| > |
| > | I have a windows form wich disapear form the screen of my ppc2003
| > |
| > |
| > | from my form called MainForm, i call from a fonction wich is something
| > like
| > | a open file dialog (returning the name of a dll file choosed in a
combo
| > | box).
| > | when this open file dialog is disposed, my MainForm is supposed to
| > reappear
| > | on the screen. but it is not., i can see the WinCe background (green
| hill
| > | and bleu sky ....)
| > |
| > | The problem seems to not come from my oepn file dialog, because this
bug
| > | doesn't occure when i call the open file dialog from elsewhere than
| > | MainForm.
| > |
| > |
| > |
| >
|
|
|