Click here to Skip to main content
Click here to Skip to main content
Add your own
alternative version
Go to top

Automatically Starting Your Application on Windows Mobile

, 31 Jul 2008
An article discussing the various methods that you can use to automatically start an application on Windows Mobile, either by schedule or in reaction to a system event.
WiMoAutoStart_Source.zip
ShowCommandLine
bin
Debug
ShowCommandLine.exe
Win32.dll
Properties
ShowCommandLine.csproj.user
TimedStart
bin
Debug
TimedStart.exe
Win32.dll
Properties
TimedStart.csproj.user
WakeUpStart
bin
Debug
WakeUpStart.exe
Win32.dll
Properties
WakeUpStart.csproj.user
Win32
bin
Debug
Win32.dll
Properties
Win32.csproj.user
namespace TimedStart
{
    partial class Form1
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;
        private System.Windows.Forms.MainMenu mainMenu1;

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        /// <param name="disposing">true if managed resources should be disposed; otherwise, false.</param>
        protected override void Dispose(bool disposing)
        {
            if (disposing && (components != null))
            {
                components.Dispose();
            }
            base.Dispose(disposing);
        }

        #region Windows Form Designer generated code

        /// <summary>
        /// Required method for Designer support - do not modify
        /// the contents of this method with the code editor.
        /// </summary>
        private void InitializeComponent()
        {
            this.mainMenu1 = new System.Windows.Forms.MainMenu();
            this.label1 = new System.Windows.Forms.Label();
            this.startTimeOut = new System.Windows.Forms.NumericUpDown();
            this.menuItemExitWithRestart = new System.Windows.Forms.MenuItem();
            this.menuItemQuit = new System.Windows.Forms.MenuItem();
            this.SuspendLayout();
            // 
            // mainMenu1
            // 
            this.mainMenu1.MenuItems.Add(this.menuItemExitWithRestart);
            this.mainMenu1.MenuItems.Add(this.menuItemQuit);
            // 
            // label1
            // 
            this.label1.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.label1.Location = new System.Drawing.Point(3, 0);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(234, 20);
            this.label1.Text = "Start Delay (seconds)";
            // 
            // startTimeOut
            // 
            this.startTimeOut.Location = new System.Drawing.Point(3, 24);
            this.startTimeOut.Maximum = new decimal(new int[] {
            300,
            0,
            0,
            0});
            this.startTimeOut.Name = "startTimeOut";
            this.startTimeOut.Size = new System.Drawing.Size(136, 22);
            this.startTimeOut.TabIndex = 1;
            this.startTimeOut.Value = new decimal(new int[] {
            15,
            0,
            0,
            0});
            // 
            // menuItemExitWithRestart
            // 
            this.menuItemExitWithRestart.Text = "&Accept";
            this.menuItemExitWithRestart.Click += new System.EventHandler(this.menuItemExitWithRestart_Click);
            // 
            // menuItemQuit
            // 
            this.menuItemQuit.Text = "Quit";
            this.menuItemQuit.Click += new System.EventHandler(this.menuItemQuit_Click);
            // 
            // Form1
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(96F, 96F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Dpi;
            this.AutoScroll = true;
            this.ClientSize = new System.Drawing.Size(240, 268);
            this.Controls.Add(this.startTimeOut);
            this.Controls.Add(this.label1);
            this.Menu = this.mainMenu1;
            this.Name = "Form1";
            this.Text = "Form1";
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.MenuItem menuItemExitWithRestart;
        private System.Windows.Forms.MenuItem menuItemQuit;
        private System.Windows.Forms.NumericUpDown startTimeOut;
    }
}

By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.

If a file you wish to view isn't highlighted, and is a text file (not binary), please let us know and we'll add colourisation support for it.

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

Share

About the Author

Joel Ivory Johnson
Software Developer Razorfish
United States United States
I attended Southern Polytechnic State University and earned a Bachelors of Science in Computer Science and later returned to earn a Masters of Science in Software Engineering.
 
For the past few years I've been providing solutions to clients using Microsoft technologies for web and Windows applications.
 
While most of my CodeProject.com articles are centered around Windows Phone it is only one of the areas in which I work and one of my interests. I also have interest in mobile development on Android and iPhone. Professionally I work with several Microsoft technologies including SQL Server technologies, Silverlight/WPF, ASP.Net and others. My recreational development interest are centered around Artificial Inteligence especially in the area of machine vision.
 
Follow on   Twitter

| Advertise | Privacy | Mobile
Web02 | 2.8.140916.1 | Last Updated 31 Jul 2008
Article Copyright 2008 by Joel Ivory Johnson
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid