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

📄 formmaskedtextbox.designer.cs

📁 csharp课本的源代码
💻 CS
字号:
namespace MaskedTextBoxExample
{
    partial class FormMaskedTextBox
    {
        /// <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.label1 = new System.Windows.Forms.Label();
            this.label2 = new System.Windows.Forms.Label();
            this.label3 = new System.Windows.Forms.Label();
            this.label4 = new System.Windows.Forms.Label();
            this.label5 = new System.Windows.Forms.Label();
            this.label6 = new System.Windows.Forms.Label();
            this.labelResult = new System.Windows.Forms.Label();
            this.maskedTextBoxUserCode = new System.Windows.Forms.MaskedTextBox();
            this.maskedTextBoxUserName = new System.Windows.Forms.MaskedTextBox();
            this.maskedTextBoxBirthday = new System.Windows.Forms.MaskedTextBox();
            this.maskedTextBoxPhone = new System.Windows.Forms.MaskedTextBox();
            this.maskedTextBoxSalary = new System.Windows.Forms.MaskedTextBox();
            this.buttonOK = new System.Windows.Forms.Button();
            this.SuspendLayout();
            // 
            // label1
            // 
            this.label1.Location = new System.Drawing.Point(23, 36);
            this.label1.Name = "label1";
            this.label1.Size = new System.Drawing.Size(41, 18);
            this.label1.TabIndex = 0;
            this.label1.Text = "员工号";
            // 
            // label2
            // 
            this.label2.Location = new System.Drawing.Point(23, 93);
            this.label2.Name = "label2";
            this.label2.Size = new System.Drawing.Size(41, 18);
            this.label2.TabIndex = 1;
            this.label2.Text = "姓名";
            // 
            // label3
            // 
            this.label3.Location = new System.Drawing.Point(23, 150);
            this.label3.Name = "label3";
            this.label3.Size = new System.Drawing.Size(41, 18);
            this.label3.TabIndex = 2;
            this.label3.Text = "出生日期";
            // 
            // label4
            // 
            this.label4.Location = new System.Drawing.Point(23, 207);
            this.label4.Name = "label4";
            this.label4.Size = new System.Drawing.Size(41, 18);
            this.label4.TabIndex = 3;
            this.label4.Text = "电话号码";
            // 
            // label5
            // 
            this.label5.Location = new System.Drawing.Point(23, 264);
            this.label5.Name = "label5";
            this.label5.Size = new System.Drawing.Size(41, 18);
            this.label5.TabIndex = 4;
            this.label5.Text = "月薪";
            // 
            // label6
            // 
            this.label6.Location = new System.Drawing.Point(252, 150);
            this.label6.Name = "label6";
            this.label6.Size = new System.Drawing.Size(127, 21);
            this.label6.TabIndex = 5;
            this.label6.Text = "“月-日-年”格式";
            // 
            // labelResult
            // 
            this.labelResult.Location = new System.Drawing.Point(56, 349);
            this.labelResult.Name = "labelResult";
            this.labelResult.Size = new System.Drawing.Size(323, 92);
            this.labelResult.TabIndex = 6;
            this.labelResult.Text = "这里显示注册信息";
            // 
            // maskedTextBoxUserCode
            // 
            this.maskedTextBoxUserCode.HidePromptOnLeave = true;
            this.maskedTextBoxUserCode.InsertKeyMode = System.Windows.Forms.InsertKeyMode.Insert;
            this.maskedTextBoxUserCode.Location = new System.Drawing.Point(110, 33);
            this.maskedTextBoxUserCode.Mask = ">LLLL-0000";
            this.maskedTextBoxUserCode.Name = "maskedTextBoxUserCode";
            this.maskedTextBoxUserCode.Size = new System.Drawing.Size(97, 21);
            this.maskedTextBoxUserCode.TabIndex = 7;
            // 
            // maskedTextBoxUserName
            // 
            this.maskedTextBoxUserName.Location = new System.Drawing.Point(110, 90);
            this.maskedTextBoxUserName.Mask = "LLLL";
            this.maskedTextBoxUserName.Name = "maskedTextBoxUserName";
            this.maskedTextBoxUserName.PromptChar = '#';
            this.maskedTextBoxUserName.Size = new System.Drawing.Size(97, 21);
            this.maskedTextBoxUserName.TabIndex = 8;
            this.maskedTextBoxUserName.TextMaskFormat = System.Windows.Forms.MaskFormat.ExcludePromptAndLiterals;
            // 
            // maskedTextBoxBirthday
            // 
            this.maskedTextBoxBirthday.Location = new System.Drawing.Point(110, 147);
            this.maskedTextBoxBirthday.Mask = "00/00/0000";
            this.maskedTextBoxBirthday.Name = "maskedTextBoxBirthday";
            this.maskedTextBoxBirthday.Size = new System.Drawing.Size(97, 21);
            this.maskedTextBoxBirthday.TabIndex = 9;
            this.maskedTextBoxBirthday.TypeValidationCompleted += new System.Windows.Forms.TypeValidationEventHandler(this.maskedTextBoxBirthday_TypeValidationCompleted);
            // 
            // maskedTextBoxPhone
            // 
            this.maskedTextBoxPhone.Location = new System.Drawing.Point(110, 204);
            this.maskedTextBoxPhone.Mask = "(9999)000000000000";
            this.maskedTextBoxPhone.Name = "maskedTextBoxPhone";
            this.maskedTextBoxPhone.ResetOnPrompt = false;
            this.maskedTextBoxPhone.Size = new System.Drawing.Size(97, 21);
            this.maskedTextBoxPhone.TabIndex = 10;
            // 
            // maskedTextBoxSalary
            // 
            this.maskedTextBoxSalary.Location = new System.Drawing.Point(110, 261);
            this.maskedTextBoxSalary.Mask = "¥999,999.99";
            this.maskedTextBoxSalary.Name = "maskedTextBoxSalary";
            this.maskedTextBoxSalary.Size = new System.Drawing.Size(97, 21);
            this.maskedTextBoxSalary.TabIndex = 11;
            // 
            // buttonOK
            // 
            this.buttonOK.Location = new System.Drawing.Point(177, 305);
            this.buttonOK.Name = "buttonOK";
            this.buttonOK.Size = new System.Drawing.Size(92, 27);
            this.buttonOK.TabIndex = 12;
            this.buttonOK.Text = "提交";
            this.buttonOK.UseVisualStyleBackColor = true;
            this.buttonOK.Click += new System.EventHandler(this.buttonOK_Click);
            // 
            // FormMaskedTextBox
            // 
            this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 12F);
            this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;
            this.ClientSize = new System.Drawing.Size(427, 450);
            this.Controls.Add(this.buttonOK);
            this.Controls.Add(this.maskedTextBoxSalary);
            this.Controls.Add(this.maskedTextBoxPhone);
            this.Controls.Add(this.maskedTextBoxBirthday);
            this.Controls.Add(this.maskedTextBoxUserName);
            this.Controls.Add(this.maskedTextBoxUserCode);
            this.Controls.Add(this.labelResult);
            this.Controls.Add(this.label6);
            this.Controls.Add(this.label5);
            this.Controls.Add(this.label4);
            this.Controls.Add(this.label3);
            this.Controls.Add(this.label2);
            this.Controls.Add(this.label1);
            this.Name = "FormMaskedTextBox";
            this.Text = "员工信息管理示例";
            this.ResumeLayout(false);
            this.PerformLayout();

        }

        #endregion

        private System.Windows.Forms.Label label1;
        private System.Windows.Forms.Label label2;
        private System.Windows.Forms.Label label3;
        private System.Windows.Forms.Label label4;
        private System.Windows.Forms.Label label5;
        private System.Windows.Forms.Label label6;
        private System.Windows.Forms.Label labelResult;
        private System.Windows.Forms.MaskedTextBox maskedTextBoxUserCode;
        private System.Windows.Forms.MaskedTextBox maskedTextBoxUserName;
        private System.Windows.Forms.MaskedTextBox maskedTextBoxBirthday;
        private System.Windows.Forms.MaskedTextBox maskedTextBoxPhone;
        private System.Windows.Forms.MaskedTextBox maskedTextBoxSalary;
        private System.Windows.Forms.Button buttonOK;
    }
}

⌨️ 快捷键说明

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