Click here to Skip to main content
15,896,111 members
Articles / Mobile Apps / Windows Mobile

GPS Tracking with Windows Mobile 5.0+

Rate me:
Please Sign up or sign in to vote.
4.60/5 (21 votes)
15 Aug 2007CPOL8 min read 238.8K   5.9K   146  
Use a Windows Mobile Professional phone with a GPS receiver to create a simple SMS based location tracking program.
namespace J2i.Net.FindMe
{
    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()
        {
            System.ComponentModel.ComponentResourceManager resources = new System.ComponentModel.ComponentResourceManager(typeof(Form1));
            this.mainMenu1 = new System.Windows.Forms.MainMenu();
            this.menuItemExit = new System.Windows.Forms.MenuItem();
            this.menuItemApply = new System.Windows.Forms.MenuItem();
            this.tabControl1 = new System.Windows.Forms.TabControl();
            this.tabPageMain = new System.Windows.Forms.TabPage();
            this.eventLog = new J2i.Net.FindMe.EventLog();
            this.panel1 = new System.Windows.Forms.Panel();
            this.txtLongitude = new System.Windows.Forms.TextBox();
            this.txtLatitude = new System.Windows.Forms.TextBox();
            this.label3 = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.label1 = new System.Windows.Forms.Label();
            this.txtPin = new System.Windows.Forms.TextBox();
            this.chkFindMeEnabled = new System.Windows.Forms.CheckBox();
            this.tabPageSettings = new System.Windows.Forms.TabPage();
            this.optionsUI = new J2i.Net.FindMe.OptionsUI();
            this.tabPageSecurity = new System.Windows.Forms.TabPage();
            this.cmdDisallow = new System.Windows.Forms.Button();
            this.cmdAllow = new System.Windows.Forms.Button();
            this.lvContacts = new System.Windows.Forms.ListView();
            this.chFirstName = new System.Windows.Forms.ColumnHeader();
            this.chLastName = new System.Windows.Forms.ColumnHeader();
            this.contextMenuContactList = new System.Windows.Forms.ContextMenu();
            this.menuItemSmsPosition = new System.Windows.Forms.MenuItem();
            this.menuItemEmailPosition = new System.Windows.Forms.MenuItem();
            this.ilPermission = new System.Windows.Forms.ImageList();
            this.rbAllowListed = new System.Windows.Forms.RadioButton();
            this.rbAllowAnyone = new System.Windows.Forms.RadioButton();
            this.tabControl1.SuspendLayout();
            this.tabPageMain.SuspendLayout();
            this.panel1.SuspendLayout();
            this.tabPageSettings.SuspendLayout();
            this.tabPageSecurity.SuspendLayout();
            this.SuspendLayout();
            // 
            // mainMenu1
            // 
            this.mainMenu1.MenuItems.Add(this.menuItemExit);
            this.mainMenu1.MenuItems.Add(this.menuItemApply);
            // 
            // menuItemExit
            // 
            this.menuItemExit.Text = "E&xit";
            this.menuItemExit.Click += new System.EventHandler(this.menuItemExit_Click);
            // 
            // menuItemApply
            // 
            this.menuItemApply.Text = "Apply";
            this.menuItemApply.Click += new System.EventHandler(this.menuItemApply_Click);
            // 
            // tabControl1
            // 
            this.tabControl1.Controls.Add(this.tabPageMain);
            this.tabControl1.Controls.Add(this.tabPageSettings);
            this.tabControl1.Controls.Add(this.tabPageSecurity);
            this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
            this.tabControl1.Location = new System.Drawing.Point(0, 0);
            this.tabControl1.Name = "tabControl1";
            this.tabControl1.SelectedIndex = 0;
            this.tabControl1.Size = new System.Drawing.Size(240, 268);
            this.tabControl1.TabIndex = 0;
            // 
            // tabPageMain
            // 
            this.tabPageMain.Controls.Add(this.eventLog);
            this.tabPageMain.Controls.Add(this.panel1);
            this.tabPageMain.Location = new System.Drawing.Point(0, 0);
            this.tabPageMain.Name = "tabPageMain";
            this.tabPageMain.Size = new System.Drawing.Size(240, 245);
            this.tabPageMain.Text = "Main";
            // 
            // eventLog
            // 
            this.eventLog.Dock = System.Windows.Forms.DockStyle.Fill;
            this.eventLog.Location = new System.Drawing.Point(0, 109);
            this.eventLog.Name = "eventLog";
            this.eventLog.Size = new System.Drawing.Size(240, 136);
            this.eventLog.TabIndex = 3;
            // 
            // panel1
            // 
            this.panel1.Controls.Add(this.txtLongitude);
            this.panel1.Controls.Add(this.txtLatitude);
            this.panel1.Controls.Add(this.label3);
            this.panel1.Controls.Add(this.label2);
            this.panel1.Controls.Add(this.label1);
            this.panel1.Controls.Add(this.txtPin);
            this.panel1.Controls.Add(this.chkFindMeEnabled);
            this.panel1.Dock = System.Windows.Forms.DockStyle.Top;
            this.panel1.Location = new System.Drawing.Point(0, 0);
            this.panel1.Name = "panel1";
            this.panel1.Size = new System.Drawing.Size(240, 109);
            // 
            // txtLongitude
            // 
            this.txtLongitude.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtLongitude.Location = new System.Drawing.Point(80, 77);
            this.txtLongitude.Name = "txtLongitude";
            this.txtLongitude.ReadOnly = true;
            this.txtLongitude.Size = new System.Drawing.Size(156, 21);
            this.txtLongitude.TabIndex = 13;
            // 
            // txtLatitude
            // 
            this.txtLatitude.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtLatitude.Location = new System.Drawing.Point(80, 54);
            this.txtLatitude.Name = "txtLatitude";
            this.txtLatitude.ReadOnly = true;
            this.txtLatitude.Size = new System.Drawing.Size(156, 21);
            this.txtLatitude.TabIndex = 12;
            // 
            // label3
            // 
            this.label3.Location = new System.Drawing.Point(7, 78);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(67, 20);
            this.label3.Text = "Longitude";
            // 
            // label2
            // 
            this.label2.Location = new System.Drawing.Point(7, 54);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(67, 20);
            this.label2.Text = "Latitude";
            // 
            // label1
            // 
            this.label1.Location = new System.Drawing.Point(7, 30);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(34, 20);
            this.label1.Text = "Pin";
            // 
            // txtPin
            // 
            this.txtPin.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.txtPin.Location = new System.Drawing.Point(80, 30);
            this.txtPin.Name = "txtPin";
            this.txtPin.Size = new System.Drawing.Size(156, 21);
            this.txtPin.TabIndex = 11;
            // 
            // chkFindMeEnabled
            // 
            this.chkFindMeEnabled.Location = new System.Drawing.Point(3, 4);
            this.chkFindMeEnabled.Name = "chkFindMeEnabled";
            this.chkFindMeEnabled.Size = new System.Drawing.Size(203, 20);
            this.chkFindMeEnabled.TabIndex = 10;
            this.chkFindMeEnabled.Text = "Enabled";
            // 
            // tabPageSettings
            // 
            this.tabPageSettings.Controls.Add(this.optionsUI);
            this.tabPageSettings.Location = new System.Drawing.Point(0, 0);
            this.tabPageSettings.Name = "tabPageSettings";
            this.tabPageSettings.Size = new System.Drawing.Size(240, 245);
            this.tabPageSettings.Text = "Settings";
            // 
            // optionsUI
            // 
            this.optionsUI.Dock = System.Windows.Forms.DockStyle.Fill;
            this.optionsUI.Location = new System.Drawing.Point(0, 0);
            this.optionsUI.Name = "optionsUI";
            this.optionsUI.Size = new System.Drawing.Size(240, 245);
            this.optionsUI.TabIndex = 0;
            this.optionsUI.OptionChanged += new System.EventHandler<J2i.Net.FindMe.OptionChangedEventArgs>(this.optionsUI_OptionChanged);
            // 
            // tabPageSecurity
            // 
            this.tabPageSecurity.Controls.Add(this.cmdDisallow);
            this.tabPageSecurity.Controls.Add(this.cmdAllow);
            this.tabPageSecurity.Controls.Add(this.lvContacts);
            this.tabPageSecurity.Controls.Add(this.rbAllowListed);
            this.tabPageSecurity.Controls.Add(this.rbAllowAnyone);
            this.tabPageSecurity.Location = new System.Drawing.Point(0, 0);
            this.tabPageSecurity.Name = "tabPageSecurity";
            this.tabPageSecurity.Size = new System.Drawing.Size(240, 245);
            this.tabPageSecurity.Text = "Security";
            // 
            // cmdDisallow
            // 
            this.cmdDisallow.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));
            this.cmdDisallow.Enabled = false;
            this.cmdDisallow.Location = new System.Drawing.Point(161, 222);
            this.cmdDisallow.Name = "cmdDisallow";
            this.cmdDisallow.Size = new System.Drawing.Size(72, 20);
            this.cmdDisallow.TabIndex = 4;
            this.cmdDisallow.Text = "Disallow";
            this.cmdDisallow.Click += new System.EventHandler(this.cmdDisallow_Click);
            // 
            // cmdAllow
            // 
            this.cmdAllow.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left)));
            this.cmdAllow.Enabled = false;
            this.cmdAllow.Location = new System.Drawing.Point(7, 222);
            this.cmdAllow.Name = "cmdAllow";
            this.cmdAllow.Size = new System.Drawing.Size(72, 20);
            this.cmdAllow.TabIndex = 3;
            this.cmdAllow.Text = "Allow";
            this.cmdAllow.Click += new System.EventHandler(this.cmdAddCmd_Click);
            // 
            // lvContacts
            // 
            this.lvContacts.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom)
                        | System.Windows.Forms.AnchorStyles.Left)
                        | System.Windows.Forms.AnchorStyles.Right)));
            this.lvContacts.CheckBoxes = true;
            this.lvContacts.Columns.Add(this.chFirstName);
            this.lvContacts.Columns.Add(this.chLastName);
            this.lvContacts.ContextMenu = this.contextMenuContactList;
            this.lvContacts.Enabled = false;
            this.lvContacts.FullRowSelect = true;
            this.lvContacts.LargeImageList = this.ilPermission;
            this.lvContacts.Location = new System.Drawing.Point(3, 59);
            this.lvContacts.Name = "lvContacts";
            this.lvContacts.Size = new System.Drawing.Size(230, 157);
            this.lvContacts.SmallImageList = this.ilPermission;
            this.lvContacts.TabIndex = 2;
            this.lvContacts.View = System.Windows.Forms.View.Details;
            this.lvContacts.ItemCheck += new System.Windows.Forms.ItemCheckEventHandler(this.lvContacts_ItemCheck);
            // 
            // chFirstName
            // 
            this.chFirstName.Text = "First Name";
            this.chFirstName.Width = 90;
            // 
            // chLastName
            // 
            this.chLastName.Text = "Last Name";
            this.chLastName.Width = 109;
            // 
            // contextMenuContactList
            // 
            this.contextMenuContactList.MenuItems.Add(this.menuItemSmsPosition);
            this.contextMenuContactList.MenuItems.Add(this.menuItemEmailPosition);
            // 
            // menuItemSmsPosition
            // 
            this.menuItemSmsPosition.Text = "&SMS Position";
            this.menuItemSmsPosition.Click += new System.EventHandler(this.menuItemSmsPosition_Click);
            // 
            // menuItemEmailPosition
            // 
            this.menuItemEmailPosition.Text = "Email Position";
            this.menuItemEmailPosition.Click += new System.EventHandler(this.menuItemEmailPosition_Click);
            this.ilPermission.Images.Clear();
            this.ilPermission.Images.Add(((System.Drawing.Image)(resources.GetObject("resource"))));
            this.ilPermission.Images.Add(((System.Drawing.Image)(resources.GetObject("resource1"))));
            // 
            // rbAllowListed
            // 
            this.rbAllowListed.Location = new System.Drawing.Point(3, 33);
            this.rbAllowListed.Name = "rbAllowListed";
            this.rbAllowListed.Size = new System.Drawing.Size(230, 20);
            this.rbAllowListed.TabIndex = 1;
            this.rbAllowListed.TabStop = false;
            this.rbAllowListed.Text = "Only Allow Selected People";
            this.rbAllowListed.CheckedChanged += new System.EventHandler(this.rbAllowListed_CheckedChanged);
            // 
            // rbAllowAnyone
            // 
            this.rbAllowAnyone.Checked = true;
            this.rbAllowAnyone.Location = new System.Drawing.Point(3, 7);
            this.rbAllowAnyone.Name = "rbAllowAnyone";
            this.rbAllowAnyone.Size = new System.Drawing.Size(230, 20);
            this.rbAllowAnyone.TabIndex = 0;
            this.rbAllowAnyone.Text = "Share Position with Everyone";
            this.rbAllowAnyone.CheckedChanged += new System.EventHandler(this.rbAllowAnyone_CheckedChanged);
            // 
            // 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.tabControl1);
            this.Menu = this.mainMenu1;
            this.Name = "Form1";
            this.Text = "Find Me!";
            this.Closing += new System.ComponentModel.CancelEventHandler(this.Form1_Closing);
            this.Load += new System.EventHandler(this.Form1_Load);
            this.tabControl1.ResumeLayout(false);
            this.tabPageMain.ResumeLayout(false);
            this.panel1.ResumeLayout(false);
            this.tabPageSettings.ResumeLayout(false);
            this.tabPageSecurity.ResumeLayout(false);
            this.ResumeLayout(false);

        }

        #endregion

        private System.Windows.Forms.MenuItem menuItemExit;
        private System.Windows.Forms.TabControl tabControl1;
        private System.Windows.Forms.TabPage tabPageMain;
        private System.Windows.Forms.Panel panel1;
        private System.Windows.Forms.TabPage tabPageSettings;
        private System.Windows.Forms.TextBox txtLongitude;
        private System.Windows.Forms.TextBox txtLatitude;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.TextBox txtPin;
        private System.Windows.Forms.CheckBox chkFindMeEnabled;
        private System.Windows.Forms.TabPage tabPageSecurity;
        private System.Windows.Forms.RadioButton rbAllowAnyone;
        private System.Windows.Forms.Button cmdDisallow;
        private System.Windows.Forms.Button cmdAllow;
        private System.Windows.Forms.ListView lvContacts;
        private System.Windows.Forms.RadioButton rbAllowListed;
        private System.Windows.Forms.ColumnHeader chFirstName;
        private System.Windows.Forms.ColumnHeader chLastName;
        private System.Windows.Forms.ImageList ilPermission;
        private OptionsUI optionsUI;
        private System.Windows.Forms.MenuItem menuItemApply;
        private EventLog eventLog;
        private System.Windows.Forms.ContextMenu contextMenuContactList;
        private System.Windows.Forms.MenuItem menuItemSmsPosition;
        private System.Windows.Forms.MenuItem menuItemEmailPosition;
    }
}

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
Software Developer
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. I've largely developed solutions that are based on a mix of Microsoft technologies with open source technologies mixed in. I've got an interest in astronomy and you'll see that interest overflow into some of my code project articles from time to time.



Twitter:@j2inet

Instagram: j2inet


Comments and Discussions