⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 formsearch.cs

📁 在windows mobile 5上的地图查看器
💻 CS
字号:
#region Using directives

using System;
using System.Drawing;
using System.Collections;
using System.Windows.Forms;
using System.Data;

#endregion

namespace PocketEarth
{
    /// <summary>
    /// Summary description for FormSearch.
    /// </summary>
    public class FormSearch : System.Windows.Forms.Form
    {
        private TextBox txtPlace;
        private Label lblInstructions;
        private Label lblInstructions2;
        private MenuItem menuDone;
        private MenuItem menuCancel;
        /// <summary>
        /// Main menu for the form.
        /// </summary>
        private System.Windows.Forms.MainMenu mainMenu1;

        public FormSearch()
        {
            InitializeComponent();
        }

        /// <summary>
        /// Clean up any resources being used.
        /// </summary>
        protected override void Dispose(bool disposing)
        {
            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.menuDone = new System.Windows.Forms.MenuItem();
            this.txtPlace = new System.Windows.Forms.TextBox();
            this.lblInstructions = new System.Windows.Forms.Label();
            this.lblInstructions2 = new System.Windows.Forms.Label();
            this.menuCancel = new System.Windows.Forms.MenuItem();
            // 
            // mainMenu1
            // 
            this.mainMenu1.MenuItems.Add(this.menuDone);
            this.mainMenu1.MenuItems.Add(this.menuCancel);
            // 
            // menuDone
            // 
            this.menuDone.Text = "Done";
            this.menuDone.Click += new System.EventHandler(this.menuDone_Click);
            // 
            // txtPlace
            // 
            this.txtPlace.Location = new System.Drawing.Point(4, 56);
            this.txtPlace.Size = new System.Drawing.Size(169, 24);
            // 
            // lblInstructions
            // 
            this.lblInstructions.Location = new System.Drawing.Point(4, 9);
            this.lblInstructions.Size = new System.Drawing.Size(152, 22);
            this.lblInstructions.Text = "Enter the name or";
            // 
            // lblInstructions2
            // 
            this.lblInstructions2.Location = new System.Drawing.Point(4, 31);
            this.lblInstructions2.Size = new System.Drawing.Size(152, 22);
            this.lblInstructions2.Text = "address of a place:";
            // 
            // menuCancel
            // 
            this.menuCancel.Text = "Cancel";
            this.menuCancel.Click += new System.EventHandler(this.menuCancel_Click);
            // 
            // FormSearch
            // 
            this.ClientSize = new System.Drawing.Size(176, 180);
            this.Controls.Add(this.lblInstructions2);
            this.Controls.Add(this.txtPlace);
            this.Controls.Add(this.lblInstructions);
            this.Menu = this.mainMenu1;
            this.Text = "Find a Place";

        }

        #endregion

        public string Place
        {
            get { return txtPlace.Text; }
        }

        private void menuDone_Click(object sender, EventArgs e)
        {
            Close();
        }

        private void menuCancel_Click(object sender, EventArgs e)
        {
            this.DialogResult = DialogResult.Cancel;
            Close();
        }
    }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -