Hi Lloyd,
A few things to try:
1. Make sure you don't have FormBorderStyle set to None. This makes a
window have the WS_POPUP style and it will behave differently with regard
to z-order. You shouldn't need BringToFront at all.
2. If you want a form to not appear in the Running Programs list, one way
to accomplish this is to set the form's Text to an empty string.
Hope this helps,
-Katie
--------------------
| From: "Lloyd Dupont" <net.galador@ld>
| Subject: chnage main window ?
| Date: Fri, 29 Aug 2003 12:48:41 +1000
| Lines: 15
| X-Priority: 3
| X-MSMail-Priority: Normal
| X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
| X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
| Message-ID: <
[email protected]>
| Newsgroups: microsoft.public.dotnet.framework.compactframework
| NNTP-Posting-Host: 61.95.54.83
| Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!tk2msftngp13.phx.gbl
| Xref: cpmsftngxa06.phx.gbl
microsoft.public.dotnet.framework.compactframework:32314
| X-Tomcat-NG: microsoft.public.dotnet.framework.compactframework
|
| I want to have one main window at a time (better display in running app
| screen), however I didn't to change it.
| I try code like
|
| newForm.Show();
| newForm.BringToFront();
| oldForm.Hide();
|
| where old form is the one I used to start the application
| (Application.Run(oldForm))
| but the new form don't appear, it's miniaturized !....
|
| I'm working on PPC, any thoughts ?
|
|
|
This posting is provided "AS IS" with no warranties, and confers no rights.