You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jun 13, 2025. It is now read-only.
Peter Foot edited this page May 22, 2024
·
1 revision
You can use the InTheHand.WindowsMobile.Forms.MobileDevice.LockAndPrompt() method to put the device into a locked state using the PIN/ alphabetic password which is set on the device. If you want to lock access to just your application you can do this anyway you choose e.g. by creating an initial login screen and securely checking the entered pin/password - make sure any data you store with your app cannot be accessed outside of your app. For example use encryption with your database. Using the LockAndPrompt method is easier because it will lock the whole phone but you need to ensure the device has a password setup. Depending on your Exchange server settings you can enforce a security policy which requires the device to use a password.