PC Review


Reply
Thread Tools Rate Thread

Reactivate CF Application

 
 
Mähr Stefan
Guest
Posts: n/a
 
      16th Mar 2005
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


 
Reply With Quote
 
 
 
 
Peter Foot [MVP]
Guest
Posts: n/a
 
      16th Mar 2005
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
>



 
Reply With Quote
 
Sergey Bogdanov
Guest
Posts: n/a
 
      16th Mar 2005
Also see this:
http://groups-beta.google.com/group/...260e97867e0817

Best regards,
Sergey Bogdanov
http://www.sergeybogdanov.com


Mähr Stefan wrote:
> 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
>
>

 
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
Unable to reactivate Application Agent Check Points William Spyware Discussion 5 27th Feb 2005 01:22 AM
Can't reactivate application agents cadaha Spyware Discussion 2 14th Feb 2005 06:23 AM
Unable to reactivate Application Agent Checkpoints Holf Spyware Discussion 3 25th Jan 2005 04:23 AM
Re: Reactivate Greg P Rozelle Windows XP General 1 18th Aug 2003 03:27 AM
XP reactivate? Michael Pisu Windows XP General 4 15th Jul 2003 06:20 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 07:49 PM.