View Single Post
Old 01-20-04, 11:13 AM   #1 (permalink)
cgill
Aximsite Prospect
 
Join Date: Jan 2004
Posts: 1
Thanked 0 Times in 0 Posts
Power on Power Off Events in Visual Basic on Pocket PCs

Hello,

I am developing an Application using VB. The Appllication should be running as the only task on the Dell Axim X3. So i must prevent the user from minimizing my apllication window, switching to other tasks. closing the apllication and so on.

For now i have already solved some problems.
The application running is now full screen (hiding the task-bar and the lower input bar using SHFullScreen).
Most Buttons switching to other applications could also be disabled (using UnregisterFunc1 and Registerhotkey) but there are still some problems.

1. (The Main Problem)
When I turn the PDA off and on the application has a title bar again and can be hidden and i also can push the upper left button to start other applications. How can i prevent this.
I Think it would be enough to start an own routine which hides the task bar again. (Like i do at the start of program).

2. Is there a possibility to start an own routine shortly before power/off or directly after power on. When the PDA turns off after a while of not beeing used (or when the user presses the power button) my application should tell the server application via socket that its falling a sleep now and that it's back again after power on.

I appreciate any help and sorry for my english ...

I have seen that there is a complete soultion for this problem via a commercial solution. But this program costs about 900 US$ and I thinks that's too much (since i am quit far meanwhile)

Christian
cgill is offline   Reply With Quote