Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 207853
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 11, 20262026-05-11T17:46:22+00:00 2026-05-11T17:46:22+00:00

I am developing a mobile application for Windows Mobile. I would like that the

  • 0

I am developing a mobile application for Windows Mobile. I would like that the application is lauched by default by the system at startup and that users cannot minimize it.

So only this application is available, all other features are disabled.

I m sure that I could define a launcher, which is executed at startup. But some problems come into my mind: could there be some memory optimizations? I mean, because only one application is available and used, maybe some other programs could be disabled, which could allow less memory to be used?

Do you have any links to this purpose?

Edit

Thanks for your answers. I read your links about the kiosk mode and found another very interesting post about this subject.

It says that for kiosk mode applications, it seems to be better on the long run to use Windows CE instead of Windows mobile, because the former is easier to adapt to these needs.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-11T17:46:22+00:00Added an answer on May 11, 2026 at 5:46 pm

    Might be able to post more useful stuff later on, but for now I can tell you the term you want to search Google for is: “kiosk mode”.

    Update – Useful stuff (hopefully)

    Now to be frank any kiosk mode is more or less a hack. Windows Mobile isn’t designed for it and as you get into more and more edge cases you are going to find the odd gap, however for the purpose of most programs the following is sufficient:


    Task 1 – Cover the UI and the taskbar so that it can’t be accessed:

    On your main form set the WindowState to Maximized and FormBorderStyle to None.
    On older OSes you might need to actually disable the taskbar itself and move the form over the top of it. This is achieved by PInvoking:

    FindWindow with the argument “HHTaskBar” (this may depend on platform, HHTaskbar works for Pocket PC 2003) and String.Empty

    [DllImport("coredll.dll", EntryPoint="FindWindowW", SetLastError=true)]
    private static extern IntPtr FindWindowCE(string lpClassName, string lpWindowName);
    

    EnableWindow with the IntPtr from FindWindow and false

    [DllImport("coredll.dll", SetLastError=true)]
    public static extern bool EnableWindow(IntPtr hWnd, bool bEnable);
    

    ShowWindow with the IntPtr from FindWindow and 0 (SW_HIDE)

    [DllImport("coredll.dll")]
    public static extern bool ShowWindow( IntPtr hwnd, int nCmdShow);
    

    Task 2 – Prevent hard-wired app keys.

    You know the ones, press orange and left button and it will automatically open Pocket Outlook.
    To do this I’m going to break rank here and recommend the only viable way I know of doing this which is to use an undocumented Win32 API call. It’s a perfectly stable call and I have a range of projects running every day that use it I just figure in some future upgrade I might need to modify the code if it gets removed, so bear that in mind.

    You’ll want to setup a low-level system wide keyboard hook via the PInvoke call:

    [DllImport("coredll.dll")]
    private static extern IntPtr SetWindowsHookEx(int idHook, HookHandlerDelegate lpfn, IntPtr hMod, uint dwThreadId);
    

    This is reasonably complex and its probably better just to point to a guide like this one to explain the theory. The basic premise is to discover the keycode of the irritating “special keys” and then block them via the hook (i.e. don’t pass them on).

    If you’re working on CF I suggest also digging into OpenNETCF as I believe it already has a global KeyHook inside it.

    As I said before this isn’t perfect and IIRC the volume control is not blockable and its possible that a notification such as a new wireless network might intrude upon your kiosk mode if you don’t set various flags in the registry (to tell it not to do that 🙂 ).

    Still, it’s not that much effort and it should be sufficient for most of your apps.


    Task 3 – Make your app run from start up

    This is the bit that can differ a fair bit depending on the device. If you want to stay in managed code the issue is that the NETCF doesn’t come pre-installed on some devices. In most cases you can just write an unmanaged booter that sits in the autorun directory (there should be one, check the manufacturer’s docs), and installs .NETCF, your app(s) and then runs your app(s). If you don’t want to get your hands dirty with unmanaged code then most hardware manufacturers offer some kind of scripting system to setup a device as you see fit. However these may work with varying degrees of effectiveness.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 165k
  • Answers 165k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer There are a couple of variants of a rename command,… May 12, 2026 at 12:33 pm
  • Editorial Team
    Editorial Team added an answer There is currently no way to build CLS-compliant assemblies from… May 12, 2026 at 12:33 pm
  • Editorial Team
    Editorial Team added an answer You might want to look at Google Protocol Buffers or… May 12, 2026 at 12:33 pm

Related Questions

I am developing a Windows mobile application. How can I show only two columns
I wanted to know how I can display a modal dialog in one of
I am developing a log4net using CF 3.5 VS 2008 on windows mobile 6.
I am creating a mobile web application using asp.net. The application must support iPhone,

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.