P/Invoking SetForegroundWindow usually does the trick:-
http://blog.opennetcf.org/pfoot/Perm...d-0950e9d16b10
Peter
--
Peter Foot
Windows Embedded MVP
http://www.inthehand.com |
http://blog.opennetcf.org/pfoot/
"Mähr Stefan" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> Hello NG,
>
> I have a problem with my CF Application that is driving me nuts.
>
> I use a main Form that can call some other forms (all of them with window
> state maximized) with this code
> Cursor.Current = Cursors.WaitCursor
> If tpRentProd Is Nothing = False Then tpRentProd = Nothing
> tpRentProd = New frmRentabilitaetProdukt
> tpRentProd.Parent = Me
> tpRentProd.Show()
> Global.ActiveForm = tpRentProd
> tpRentProd.BringToFront()
> Cursor.Current = Cursors.Default
>
>
> When I open a form like this over the main form and hit the X Button in
> the right upper corner the application is still in memory (what is fine
> according
> to Certified for Windows Mobile) BUT I am not able to recall my
> Application over the Application icon, i have to go to Settings - Memory -
> Running Programms to activate it again ....
> The same problem occurs if i open another programm ie Pocket Excel and
> want to switch back to my app ... whenever there is a, i call it in this
> case a sort of MDI Child open I am not able to switch back to the app the
> common way.
>
> Any ideas?
>
> Thanks in advance
>
> Stefan
>