Click here to Skip to main content
15,892,222 members
Articles / Mobile Apps / Windows Mobile

Windows Mobile: Implement Kiosk Mode

Rate me:
Please Sign up or sign in to vote.
3.67/5 (6 votes)
10 Aug 2007CPOL4 min read 71.9K   975   34  
Windows Mobile: Implement kiosk mode
namespace KioskMode
{
    partial class frmKiosk
    {
        /// <summary>
        /// Required designer variable.
        /// </summary>
        private System.ComponentModel.IContainer components = null;

        /// <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.butExit = new System.Windows.Forms.Button();
            this.butApp1 = new System.Windows.Forms.Button();
            this.picBackGround = new System.Windows.Forms.PictureBox();
            this.butEnable = new System.Windows.Forms.Button();
            this.butApp2 = new System.Windows.Forms.Button();
            this.SuspendLayout();
            // 
            // butExit
            // 
            this.butExit.BackColor = System.Drawing.Color.DarkOrange;
            this.butExit.Font = new System.Drawing.Font("Tahoma", 12F, System.Drawing.FontStyle.Regular);
            this.butExit.Location = new System.Drawing.Point(219, 0);
            this.butExit.Name = "butExit";
            this.butExit.Size = new System.Drawing.Size(18, 20);
            this.butExit.TabIndex = 1;
            this.butExit.Text = "X";
            this.butExit.Click += new System.EventHandler(this.butExit_Click);
            // 
            // butApp1
            // 
            this.butApp1.BackColor = System.Drawing.Color.Orange;
            this.butApp1.Font = new System.Drawing.Font("Papyrus", 10F, System.Drawing.FontStyle.Bold);
            this.butApp1.Location = new System.Drawing.Point(3, 49);
            this.butApp1.Name = "butApp1";
            this.butApp1.Size = new System.Drawing.Size(234, 20);
            this.butApp1.TabIndex = 0;
            this.butApp1.Text = "Start App 1";
            this.butApp1.Click += new System.EventHandler(this.butApp1_Click);
            // 
            // picBackGround
            // 
            this.picBackGround.BackColor = System.Drawing.Color.NavajoWhite;
            this.picBackGround.Dock = System.Windows.Forms.DockStyle.Fill;
            this.picBackGround.Location = new System.Drawing.Point(0, 0);
            this.picBackGround.Name = "picBackGround";
            this.picBackGround.Size = new System.Drawing.Size(240, 320);
            this.picBackGround.SizeMode = System.Windows.Forms.PictureBoxSizeMode.StretchImage;
            // 
            // butEnable
            // 
            this.butEnable.BackColor = System.Drawing.Color.SandyBrown;
            this.butEnable.Location = new System.Drawing.Point(3, 297);
            this.butEnable.Name = "butEnable";
            this.butEnable.Size = new System.Drawing.Size(234, 20);
            this.butEnable.TabIndex = 3;
            this.butEnable.Text = "Enable";
            this.butEnable.Click += new System.EventHandler(this.butEnable_Click);
            // 
            // butApp2
            // 
            this.butApp2.BackColor = System.Drawing.Color.Orange;
            this.butApp2.Font = new System.Drawing.Font("Papyrus", 10F, System.Drawing.FontStyle.Bold);
            this.butApp2.Location = new System.Drawing.Point(3, 108);
            this.butApp2.Name = "butApp2";
            this.butApp2.Size = new System.Drawing.Size(234, 20);
            this.butApp2.TabIndex = 5;
            this.butApp2.Text = "Start App 2";
            this.butApp2.Click += new System.EventHandler(this.butApp2_Click);
            // 
            // frmKiosk
            // 
            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, 320);
            this.ControlBox = false;
            this.Controls.Add(this.butApp2);
            this.Controls.Add(this.butEnable);
            this.Controls.Add(this.butExit);
            this.Controls.Add(this.butApp1);
            this.Controls.Add(this.picBackGround);
            this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
            this.Location = new System.Drawing.Point(0, 0);
            this.MinimizeBox = false;
            this.Name = "frmKiosk";
            this.Text = "Form1";
            this.TopMost = true;
            this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.Button butApp1;
        private System.Windows.Forms.Button butExit;
        private System.Windows.Forms.PictureBox picBackGround;
        private System.Windows.Forms.Button butEnable;
        private System.Windows.Forms.Button butApp2;
    }
}

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)


Written By
Web Developer
Switzerland Switzerland
Project Manager in .Net field

Comments and Discussions