<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp_by_API%2FSystem.Windows.Forms%2FMaskedTextBox</id>
		<title>Csharp/C Sharp by API/System.Windows.Forms/MaskedTextBox - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FC_Sharp_by_API%2FSystem.Windows.Forms%2FMaskedTextBox"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Windows.Forms/MaskedTextBox&amp;action=history"/>
		<updated>2026-04-30T00:31:59Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Windows.Forms/MaskedTextBox&amp;diff=4068&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Windows.Forms/MaskedTextBox&amp;diff=4068&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:35Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 15:31, 26 мая 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
			</entry>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Windows.Forms/MaskedTextBox&amp;diff=4069&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/C_Sharp_by_API/System.Windows.Forms/MaskedTextBox&amp;diff=4069&amp;oldid=prev"/>
				<updated>2010-05-26T12:09:06Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;==MaskedTextBox.BeepOnError==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt; &lt;br /&gt;
&lt;br /&gt;
using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Data;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Text;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
public class MainWindow : Form {&lt;br /&gt;
    public MainWindow() {&lt;br /&gt;
        InitializeComponent();&lt;br /&gt;
        CreateLabelControl();&lt;br /&gt;
    }&lt;br /&gt;
    private void btnDisplayData_Click(object sender, EventArgs e) {&lt;br /&gt;
        string textBoxData = &amp;quot;&amp;quot;;&lt;br /&gt;
        textBoxData += string.Format(&amp;quot;MultiLine:  {0}\n&amp;quot;, txtMultiline.Text);&lt;br /&gt;
        textBoxData += string.Format(&amp;quot;\nPassword:  {0}\n&amp;quot;, txtPassword.Text);&lt;br /&gt;
        textBoxData += string.Format(&amp;quot;\nUppercase:  {0}\n&amp;quot;, txtUpperCase.Text);&lt;br /&gt;
        textBoxData += string.Format(&amp;quot;\nMasked:  {0}\n&amp;quot;, txtMaskedTextBox.Text);&lt;br /&gt;
        MessageBox.Show(textBoxData, &amp;quot;Here is the data in your TextBoxes&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
    private void CreateLabelControl() {&lt;br /&gt;
        Label lblInstructions = new Label();&lt;br /&gt;
        lblInstructions.Text = &amp;quot;Please enter values in all the text boxes&amp;quot;;&lt;br /&gt;
        lblInstructions.Font = new Font(&amp;quot;Times New Roman&amp;quot;, 9.75F, FontStyle.Bold);&lt;br /&gt;
        lblInstructions.AutoSize = true;&lt;br /&gt;
        lblInstructions.Location = new System.Drawing.Point(16, 13);&lt;br /&gt;
        lblInstructions.Size = new System.Drawing.Size(240, 16);&lt;br /&gt;
        this.Controls.Add(lblInstructions);&lt;br /&gt;
    }&lt;br /&gt;
    private void txtMaskedTextBox_MaskInputRejected(object sender, MaskInputRejectedEventArgs e) {&lt;br /&gt;
        this.Text = string.Format(&amp;quot;Error: {0}&amp;quot;, e.RejectionHint);&lt;br /&gt;
    }&lt;br /&gt;
    private void txtMaskedTextBox_KeyDown(object sender, KeyEventArgs e) {&lt;br /&gt;
        this.Text = &amp;quot;Labels and TextBoxes&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
    private void InitializeComponent() {&lt;br /&gt;
        this.lblPassword = new System.Windows.Forms.Label();&lt;br /&gt;
        this.txtPassword = new System.Windows.Forms.TextBox();&lt;br /&gt;
        this.lblMultiline = new System.Windows.Forms.Label();&lt;br /&gt;
        this.txtMultiline = new System.Windows.Forms.TextBox();&lt;br /&gt;
        this.lblUpperCaseOnly = new System.Windows.Forms.Label();&lt;br /&gt;
        this.txtUpperCase = new System.Windows.Forms.TextBox();&lt;br /&gt;
        this.lblMaskedTextBox = new System.Windows.Forms.Label();&lt;br /&gt;
        this.txtMaskedTextBox = new System.Windows.Forms.MaskedTextBox();&lt;br /&gt;
        this.btnDisplayData = new System.Windows.Forms.Button();&lt;br /&gt;
        this.SuspendLayout();&lt;br /&gt;
        this.lblPassword.AutoSize = true;&lt;br /&gt;
        this.lblPassword.Location = new System.Drawing.Point(13, 43);&lt;br /&gt;
        this.lblPassword.Name = &amp;quot;lblPassword&amp;quot;;&lt;br /&gt;
        this.lblPassword.Size = new System.Drawing.Size(94, 13);&lt;br /&gt;
        this.lblPassword.TabIndex = 0;&lt;br /&gt;
        this.lblPassword.Text = &amp;quot;&amp;amp;Password TextBox:&amp;quot;;&lt;br /&gt;
        this.txtPassword.Location = new System.Drawing.Point(125, 43);&lt;br /&gt;
        this.txtPassword.Name = &amp;quot;txtPassword&amp;quot;;&lt;br /&gt;
        this.txtPassword.PasswordChar = &amp;quot;*&amp;quot;;&lt;br /&gt;
        this.txtPassword.Size = new System.Drawing.Size(220, 20);&lt;br /&gt;
        this.txtPassword.TabIndex = 1;&lt;br /&gt;
        this.lblMultiline.AutoSize = true;&lt;br /&gt;
        this.lblMultiline.Location = new System.Drawing.Point(14, 80);&lt;br /&gt;
        this.lblMultiline.Name = &amp;quot;lblMultiline&amp;quot;;&lt;br /&gt;
        this.lblMultiline.Size = new System.Drawing.Size(86, 13);&lt;br /&gt;
        this.lblMultiline.TabIndex = 2;&lt;br /&gt;
        this.lblMultiline.Text = &amp;quot;&amp;amp;Multiline TextBox:&amp;quot;;&lt;br /&gt;
        this.txtMultiline.Location = new System.Drawing.Point(125, 80);&lt;br /&gt;
        this.txtMultiline.Multiline = true;&lt;br /&gt;
        this.txtMultiline.Name = &amp;quot;txtMultiline&amp;quot;;&lt;br /&gt;
        this.txtMultiline.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;&lt;br /&gt;
        this.txtMultiline.Size = new System.Drawing.Size(220, 52);&lt;br /&gt;
        this.txtMultiline.TabIndex = 3;&lt;br /&gt;
        this.lblUpperCaseOnly.AutoSize = true;&lt;br /&gt;
        this.lblUpperCaseOnly.Location = new System.Drawing.Point(15, 157);&lt;br /&gt;
        this.lblUpperCaseOnly.Name = &amp;quot;lblUpperCaseOnly&amp;quot;;&lt;br /&gt;
        this.lblUpperCaseOnly.Size = new System.Drawing.Size(82, 13);&lt;br /&gt;
        this.lblUpperCaseOnly.TabIndex = 4;&lt;br /&gt;
        this.lblUpperCaseOnly.Text = &amp;quot;&amp;amp;Uppercase Only:&amp;quot;;&lt;br /&gt;
        this.txtUpperCase.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;&lt;br /&gt;
        this.txtUpperCase.Location = new System.Drawing.Point(125, 157);&lt;br /&gt;
        this.txtUpperCase.Name = &amp;quot;txtUpperCase&amp;quot;;&lt;br /&gt;
        this.txtUpperCase.Size = new System.Drawing.Size(220, 20);&lt;br /&gt;
        this.txtUpperCase.TabIndex = 5;&lt;br /&gt;
        // &lt;br /&gt;
        this.lblMaskedTextBox.AutoSize = true;&lt;br /&gt;
        this.lblMaskedTextBox.Location = new System.Drawing.Point(15, 199);&lt;br /&gt;
        this.lblMaskedTextBox.Name = &amp;quot;lblMaskedTextBox&amp;quot;;&lt;br /&gt;
        this.lblMaskedTextBox.Size = new System.Drawing.Size(83, 13);&lt;br /&gt;
        this.lblMaskedTextBox.TabIndex = 7;&lt;br /&gt;
        this.lblMaskedTextBox.Text = &amp;quot;Mas&amp;amp;ked TextBox&amp;quot;;&lt;br /&gt;
        // &lt;br /&gt;
        this.txtMaskedTextBox.BeepOnError = true;&lt;br /&gt;
        this.txtMaskedTextBox.CausesValidation = false;&lt;br /&gt;
        this.txtMaskedTextBox.Location = new System.Drawing.Point(125, 199);&lt;br /&gt;
        this.txtMaskedTextBox.Mask = &amp;quot;(999) 000-0000&amp;quot;;&lt;br /&gt;
        this.txtMaskedTextBox.Name = &amp;quot;txtMaskedTextBox&amp;quot;;&lt;br /&gt;
        this.txtMaskedTextBox.Size = new System.Drawing.Size(220, 20);&lt;br /&gt;
        this.txtMaskedTextBox.TabIndex = 8;&lt;br /&gt;
        this.txtMaskedTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtMaskedTextBox_KeyDown);&lt;br /&gt;
        this.txtMaskedTextBox.MaskInputRejected += new System.Windows.Forms.MaskInputRejectedEventHandler(this.txtMaskedTextBox_MaskInputRejected);&lt;br /&gt;
        // &lt;br /&gt;
        this.btnDisplayData.Location = new System.Drawing.Point(257, 236);&lt;br /&gt;
        this.btnDisplayData.Name = &amp;quot;btnDisplayData&amp;quot;;&lt;br /&gt;
        this.btnDisplayData.Size = new System.Drawing.Size(88, 23);&lt;br /&gt;
        this.btnDisplayData.TabIndex = 6;&lt;br /&gt;
        this.btnDisplayData.Text = &amp;quot;Display Data&amp;quot;;&lt;br /&gt;
        this.btnDisplayData.Click += new System.EventHandler(this.btnDisplayData_Click);&lt;br /&gt;
        // &lt;br /&gt;
        this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);&lt;br /&gt;
        this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;&lt;br /&gt;
        this.ClientSize = new System.Drawing.Size(357, 276);&lt;br /&gt;
        this.Controls.Add(this.txtMaskedTextBox);&lt;br /&gt;
        this.Controls.Add(this.lblMaskedTextBox);&lt;br /&gt;
        this.Controls.Add(this.btnDisplayData);&lt;br /&gt;
        this.Controls.Add(this.txtUpperCase);&lt;br /&gt;
        this.Controls.Add(this.lblUpperCaseOnly);&lt;br /&gt;
        this.Controls.Add(this.txtMultiline);&lt;br /&gt;
        this.Controls.Add(this.lblMultiline);&lt;br /&gt;
        this.Controls.Add(this.txtPassword);&lt;br /&gt;
        this.Controls.Add(this.lblPassword);&lt;br /&gt;
        this.Text = &amp;quot;Fun with Labels and TextBoxes&amp;quot;;&lt;br /&gt;
        this.ResumeLayout(false);&lt;br /&gt;
        this.PerformLayout();&lt;br /&gt;
    }&lt;br /&gt;
    private System.Windows.Forms.Label lblPassword;&lt;br /&gt;
    private System.Windows.Forms.TextBox txtPassword;&lt;br /&gt;
    private System.Windows.Forms.Label lblMultiline;&lt;br /&gt;
    private System.Windows.Forms.TextBox txtMultiline;&lt;br /&gt;
    private System.Windows.Forms.Label lblUpperCaseOnly;&lt;br /&gt;
    private System.Windows.Forms.TextBox txtUpperCase;&lt;br /&gt;
    private System.Windows.Forms.Label lblMaskedTextBox;&lt;br /&gt;
    private System.Windows.Forms.MaskedTextBox txtMaskedTextBox;&lt;br /&gt;
    private System.Windows.Forms.Button btnDisplayData;&lt;br /&gt;
    [STAThread]&lt;br /&gt;
    static void Main() {&lt;br /&gt;
        Application.EnableVisualStyles();&lt;br /&gt;
        Application.Run(new MainWindow());&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MaskedTextBox.CausesValidation==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt; &lt;br /&gt;
&lt;br /&gt;
using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Data;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Text;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
public class MainWindow : Form {&lt;br /&gt;
    public MainWindow() {&lt;br /&gt;
        InitializeComponent();&lt;br /&gt;
        CreateLabelControl();&lt;br /&gt;
    }&lt;br /&gt;
    private void btnDisplayData_Click(object sender, EventArgs e) {&lt;br /&gt;
        string textBoxData = &amp;quot;&amp;quot;;&lt;br /&gt;
        textBoxData += string.Format(&amp;quot;MultiLine:  {0}\n&amp;quot;, txtMultiline.Text);&lt;br /&gt;
        textBoxData += string.Format(&amp;quot;\nPassword:  {0}\n&amp;quot;, txtPassword.Text);&lt;br /&gt;
        textBoxData += string.Format(&amp;quot;\nUppercase:  {0}\n&amp;quot;, txtUpperCase.Text);&lt;br /&gt;
        textBoxData += string.Format(&amp;quot;\nMasked:  {0}\n&amp;quot;, txtMaskedTextBox.Text);&lt;br /&gt;
        MessageBox.Show(textBoxData, &amp;quot;Here is the data in your TextBoxes&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
    private void CreateLabelControl() {&lt;br /&gt;
        Label lblInstructions = new Label();&lt;br /&gt;
        lblInstructions.Text = &amp;quot;Please enter values in all the text boxes&amp;quot;;&lt;br /&gt;
        lblInstructions.Font = new Font(&amp;quot;Times New Roman&amp;quot;, 9.75F, FontStyle.Bold);&lt;br /&gt;
        lblInstructions.AutoSize = true;&lt;br /&gt;
        lblInstructions.Location = new System.Drawing.Point(16, 13);&lt;br /&gt;
        lblInstructions.Size = new System.Drawing.Size(240, 16);&lt;br /&gt;
        this.Controls.Add(lblInstructions);&lt;br /&gt;
    }&lt;br /&gt;
    private void txtMaskedTextBox_MaskInputRejected(object sender, MaskInputRejectedEventArgs e) {&lt;br /&gt;
        this.Text = string.Format(&amp;quot;Error: {0}&amp;quot;, e.RejectionHint);&lt;br /&gt;
    }&lt;br /&gt;
    private void txtMaskedTextBox_KeyDown(object sender, KeyEventArgs e) {&lt;br /&gt;
        this.Text = &amp;quot;Labels and TextBoxes&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
    private void InitializeComponent() {&lt;br /&gt;
        this.lblPassword = new System.Windows.Forms.Label();&lt;br /&gt;
        this.txtPassword = new System.Windows.Forms.TextBox();&lt;br /&gt;
        this.lblMultiline = new System.Windows.Forms.Label();&lt;br /&gt;
        this.txtMultiline = new System.Windows.Forms.TextBox();&lt;br /&gt;
        this.lblUpperCaseOnly = new System.Windows.Forms.Label();&lt;br /&gt;
        this.txtUpperCase = new System.Windows.Forms.TextBox();&lt;br /&gt;
        this.lblMaskedTextBox = new System.Windows.Forms.Label();&lt;br /&gt;
        this.txtMaskedTextBox = new System.Windows.Forms.MaskedTextBox();&lt;br /&gt;
        this.btnDisplayData = new System.Windows.Forms.Button();&lt;br /&gt;
        this.SuspendLayout();&lt;br /&gt;
        this.lblPassword.AutoSize = true;&lt;br /&gt;
        this.lblPassword.Location = new System.Drawing.Point(13, 43);&lt;br /&gt;
        this.lblPassword.Name = &amp;quot;lblPassword&amp;quot;;&lt;br /&gt;
        this.lblPassword.Size = new System.Drawing.Size(94, 13);&lt;br /&gt;
        this.lblPassword.TabIndex = 0;&lt;br /&gt;
        this.lblPassword.Text = &amp;quot;&amp;amp;Password TextBox:&amp;quot;;&lt;br /&gt;
        this.txtPassword.Location = new System.Drawing.Point(125, 43);&lt;br /&gt;
        this.txtPassword.Name = &amp;quot;txtPassword&amp;quot;;&lt;br /&gt;
        this.txtPassword.PasswordChar = &amp;quot;*&amp;quot;;&lt;br /&gt;
        this.txtPassword.Size = new System.Drawing.Size(220, 20);&lt;br /&gt;
        this.txtPassword.TabIndex = 1;&lt;br /&gt;
        this.lblMultiline.AutoSize = true;&lt;br /&gt;
        this.lblMultiline.Location = new System.Drawing.Point(14, 80);&lt;br /&gt;
        this.lblMultiline.Name = &amp;quot;lblMultiline&amp;quot;;&lt;br /&gt;
        this.lblMultiline.Size = new System.Drawing.Size(86, 13);&lt;br /&gt;
        this.lblMultiline.TabIndex = 2;&lt;br /&gt;
        this.lblMultiline.Text = &amp;quot;&amp;amp;Multiline TextBox:&amp;quot;;&lt;br /&gt;
        this.txtMultiline.Location = new System.Drawing.Point(125, 80);&lt;br /&gt;
        this.txtMultiline.Multiline = true;&lt;br /&gt;
        this.txtMultiline.Name = &amp;quot;txtMultiline&amp;quot;;&lt;br /&gt;
        this.txtMultiline.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;&lt;br /&gt;
        this.txtMultiline.Size = new System.Drawing.Size(220, 52);&lt;br /&gt;
        this.txtMultiline.TabIndex = 3;&lt;br /&gt;
        this.lblUpperCaseOnly.AutoSize = true;&lt;br /&gt;
        this.lblUpperCaseOnly.Location = new System.Drawing.Point(15, 157);&lt;br /&gt;
        this.lblUpperCaseOnly.Name = &amp;quot;lblUpperCaseOnly&amp;quot;;&lt;br /&gt;
        this.lblUpperCaseOnly.Size = new System.Drawing.Size(82, 13);&lt;br /&gt;
        this.lblUpperCaseOnly.TabIndex = 4;&lt;br /&gt;
        this.lblUpperCaseOnly.Text = &amp;quot;&amp;amp;Uppercase Only:&amp;quot;;&lt;br /&gt;
        this.txtUpperCase.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;&lt;br /&gt;
        this.txtUpperCase.Location = new System.Drawing.Point(125, 157);&lt;br /&gt;
        this.txtUpperCase.Name = &amp;quot;txtUpperCase&amp;quot;;&lt;br /&gt;
        this.txtUpperCase.Size = new System.Drawing.Size(220, 20);&lt;br /&gt;
        this.txtUpperCase.TabIndex = 5;&lt;br /&gt;
        // &lt;br /&gt;
        this.lblMaskedTextBox.AutoSize = true;&lt;br /&gt;
        this.lblMaskedTextBox.Location = new System.Drawing.Point(15, 199);&lt;br /&gt;
        this.lblMaskedTextBox.Name = &amp;quot;lblMaskedTextBox&amp;quot;;&lt;br /&gt;
        this.lblMaskedTextBox.Size = new System.Drawing.Size(83, 13);&lt;br /&gt;
        this.lblMaskedTextBox.TabIndex = 7;&lt;br /&gt;
        this.lblMaskedTextBox.Text = &amp;quot;Mas&amp;amp;ked TextBox&amp;quot;;&lt;br /&gt;
        // &lt;br /&gt;
        this.txtMaskedTextBox.BeepOnError = true;&lt;br /&gt;
        this.txtMaskedTextBox.CausesValidation = false;&lt;br /&gt;
        this.txtMaskedTextBox.Location = new System.Drawing.Point(125, 199);&lt;br /&gt;
        this.txtMaskedTextBox.Mask = &amp;quot;(999) 000-0000&amp;quot;;&lt;br /&gt;
        this.txtMaskedTextBox.Name = &amp;quot;txtMaskedTextBox&amp;quot;;&lt;br /&gt;
        this.txtMaskedTextBox.Size = new System.Drawing.Size(220, 20);&lt;br /&gt;
        this.txtMaskedTextBox.TabIndex = 8;&lt;br /&gt;
        this.txtMaskedTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtMaskedTextBox_KeyDown);&lt;br /&gt;
        this.txtMaskedTextBox.MaskInputRejected += new System.Windows.Forms.MaskInputRejectedEventHandler(this.txtMaskedTextBox_MaskInputRejected);&lt;br /&gt;
        // &lt;br /&gt;
        this.btnDisplayData.Location = new System.Drawing.Point(257, 236);&lt;br /&gt;
        this.btnDisplayData.Name = &amp;quot;btnDisplayData&amp;quot;;&lt;br /&gt;
        this.btnDisplayData.Size = new System.Drawing.Size(88, 23);&lt;br /&gt;
        this.btnDisplayData.TabIndex = 6;&lt;br /&gt;
        this.btnDisplayData.Text = &amp;quot;Display Data&amp;quot;;&lt;br /&gt;
        this.btnDisplayData.Click += new System.EventHandler(this.btnDisplayData_Click);&lt;br /&gt;
        // &lt;br /&gt;
        this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);&lt;br /&gt;
        this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;&lt;br /&gt;
        this.ClientSize = new System.Drawing.Size(357, 276);&lt;br /&gt;
        this.Controls.Add(this.txtMaskedTextBox);&lt;br /&gt;
        this.Controls.Add(this.lblMaskedTextBox);&lt;br /&gt;
        this.Controls.Add(this.btnDisplayData);&lt;br /&gt;
        this.Controls.Add(this.txtUpperCase);&lt;br /&gt;
        this.Controls.Add(this.lblUpperCaseOnly);&lt;br /&gt;
        this.Controls.Add(this.txtMultiline);&lt;br /&gt;
        this.Controls.Add(this.lblMultiline);&lt;br /&gt;
        this.Controls.Add(this.txtPassword);&lt;br /&gt;
        this.Controls.Add(this.lblPassword);&lt;br /&gt;
        this.Text = &amp;quot;Fun with Labels and TextBoxes&amp;quot;;&lt;br /&gt;
        this.ResumeLayout(false);&lt;br /&gt;
        this.PerformLayout();&lt;br /&gt;
    }&lt;br /&gt;
    private System.Windows.Forms.Label lblPassword;&lt;br /&gt;
    private System.Windows.Forms.TextBox txtPassword;&lt;br /&gt;
    private System.Windows.Forms.Label lblMultiline;&lt;br /&gt;
    private System.Windows.Forms.TextBox txtMultiline;&lt;br /&gt;
    private System.Windows.Forms.Label lblUpperCaseOnly;&lt;br /&gt;
    private System.Windows.Forms.TextBox txtUpperCase;&lt;br /&gt;
    private System.Windows.Forms.Label lblMaskedTextBox;&lt;br /&gt;
    private System.Windows.Forms.MaskedTextBox txtMaskedTextBox;&lt;br /&gt;
    private System.Windows.Forms.Button btnDisplayData;&lt;br /&gt;
    [STAThread]&lt;br /&gt;
    static void Main() {&lt;br /&gt;
        Application.EnableVisualStyles();&lt;br /&gt;
        Application.Run(new MainWindow());&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MaskedTextBox.KeyDown==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt; &lt;br /&gt;
&lt;br /&gt;
using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Data;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Text;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
public class MainWindow : Form {&lt;br /&gt;
    public MainWindow() {&lt;br /&gt;
        InitializeComponent();&lt;br /&gt;
        CreateLabelControl();&lt;br /&gt;
    }&lt;br /&gt;
    private void btnDisplayData_Click(object sender, EventArgs e) {&lt;br /&gt;
        string textBoxData = &amp;quot;&amp;quot;;&lt;br /&gt;
        textBoxData += string.Format(&amp;quot;MultiLine:  {0}\n&amp;quot;, txtMultiline.Text);&lt;br /&gt;
        textBoxData += string.Format(&amp;quot;\nPassword:  {0}\n&amp;quot;, txtPassword.Text);&lt;br /&gt;
        textBoxData += string.Format(&amp;quot;\nUppercase:  {0}\n&amp;quot;, txtUpperCase.Text);&lt;br /&gt;
        textBoxData += string.Format(&amp;quot;\nMasked:  {0}\n&amp;quot;, txtMaskedTextBox.Text);&lt;br /&gt;
        MessageBox.Show(textBoxData, &amp;quot;Here is the data in your TextBoxes&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
    private void CreateLabelControl() {&lt;br /&gt;
        Label lblInstructions = new Label();&lt;br /&gt;
        lblInstructions.Text = &amp;quot;Please enter values in all the text boxes&amp;quot;;&lt;br /&gt;
        lblInstructions.Font = new Font(&amp;quot;Times New Roman&amp;quot;, 9.75F, FontStyle.Bold);&lt;br /&gt;
        lblInstructions.AutoSize = true;&lt;br /&gt;
        lblInstructions.Location = new System.Drawing.Point(16, 13);&lt;br /&gt;
        lblInstructions.Size = new System.Drawing.Size(240, 16);&lt;br /&gt;
        this.Controls.Add(lblInstructions);&lt;br /&gt;
    }&lt;br /&gt;
    private void txtMaskedTextBox_MaskInputRejected(object sender, MaskInputRejectedEventArgs e) {&lt;br /&gt;
        this.Text = string.Format(&amp;quot;Error: {0}&amp;quot;, e.RejectionHint);&lt;br /&gt;
    }&lt;br /&gt;
    private void txtMaskedTextBox_KeyDown(object sender, KeyEventArgs e) {&lt;br /&gt;
        this.Text = &amp;quot;Labels and TextBoxes&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
    private void InitializeComponent() {&lt;br /&gt;
        this.lblPassword = new System.Windows.Forms.Label();&lt;br /&gt;
        this.txtPassword = new System.Windows.Forms.TextBox();&lt;br /&gt;
        this.lblMultiline = new System.Windows.Forms.Label();&lt;br /&gt;
        this.txtMultiline = new System.Windows.Forms.TextBox();&lt;br /&gt;
        this.lblUpperCaseOnly = new System.Windows.Forms.Label();&lt;br /&gt;
        this.txtUpperCase = new System.Windows.Forms.TextBox();&lt;br /&gt;
        this.lblMaskedTextBox = new System.Windows.Forms.Label();&lt;br /&gt;
        this.txtMaskedTextBox = new System.Windows.Forms.MaskedTextBox();&lt;br /&gt;
        this.btnDisplayData = new System.Windows.Forms.Button();&lt;br /&gt;
        this.SuspendLayout();&lt;br /&gt;
        this.lblPassword.AutoSize = true;&lt;br /&gt;
        this.lblPassword.Location = new System.Drawing.Point(13, 43);&lt;br /&gt;
        this.lblPassword.Name = &amp;quot;lblPassword&amp;quot;;&lt;br /&gt;
        this.lblPassword.Size = new System.Drawing.Size(94, 13);&lt;br /&gt;
        this.lblPassword.TabIndex = 0;&lt;br /&gt;
        this.lblPassword.Text = &amp;quot;&amp;amp;Password TextBox:&amp;quot;;&lt;br /&gt;
        this.txtPassword.Location = new System.Drawing.Point(125, 43);&lt;br /&gt;
        this.txtPassword.Name = &amp;quot;txtPassword&amp;quot;;&lt;br /&gt;
        this.txtPassword.PasswordChar = &amp;quot;*&amp;quot;;&lt;br /&gt;
        this.txtPassword.Size = new System.Drawing.Size(220, 20);&lt;br /&gt;
        this.txtPassword.TabIndex = 1;&lt;br /&gt;
        this.lblMultiline.AutoSize = true;&lt;br /&gt;
        this.lblMultiline.Location = new System.Drawing.Point(14, 80);&lt;br /&gt;
        this.lblMultiline.Name = &amp;quot;lblMultiline&amp;quot;;&lt;br /&gt;
        this.lblMultiline.Size = new System.Drawing.Size(86, 13);&lt;br /&gt;
        this.lblMultiline.TabIndex = 2;&lt;br /&gt;
        this.lblMultiline.Text = &amp;quot;&amp;amp;Multiline TextBox:&amp;quot;;&lt;br /&gt;
        this.txtMultiline.Location = new System.Drawing.Point(125, 80);&lt;br /&gt;
        this.txtMultiline.Multiline = true;&lt;br /&gt;
        this.txtMultiline.Name = &amp;quot;txtMultiline&amp;quot;;&lt;br /&gt;
        this.txtMultiline.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;&lt;br /&gt;
        this.txtMultiline.Size = new System.Drawing.Size(220, 52);&lt;br /&gt;
        this.txtMultiline.TabIndex = 3;&lt;br /&gt;
        this.lblUpperCaseOnly.AutoSize = true;&lt;br /&gt;
        this.lblUpperCaseOnly.Location = new System.Drawing.Point(15, 157);&lt;br /&gt;
        this.lblUpperCaseOnly.Name = &amp;quot;lblUpperCaseOnly&amp;quot;;&lt;br /&gt;
        this.lblUpperCaseOnly.Size = new System.Drawing.Size(82, 13);&lt;br /&gt;
        this.lblUpperCaseOnly.TabIndex = 4;&lt;br /&gt;
        this.lblUpperCaseOnly.Text = &amp;quot;&amp;amp;Uppercase Only:&amp;quot;;&lt;br /&gt;
        this.txtUpperCase.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;&lt;br /&gt;
        this.txtUpperCase.Location = new System.Drawing.Point(125, 157);&lt;br /&gt;
        this.txtUpperCase.Name = &amp;quot;txtUpperCase&amp;quot;;&lt;br /&gt;
        this.txtUpperCase.Size = new System.Drawing.Size(220, 20);&lt;br /&gt;
        this.txtUpperCase.TabIndex = 5;&lt;br /&gt;
        // &lt;br /&gt;
        this.lblMaskedTextBox.AutoSize = true;&lt;br /&gt;
        this.lblMaskedTextBox.Location = new System.Drawing.Point(15, 199);&lt;br /&gt;
        this.lblMaskedTextBox.Name = &amp;quot;lblMaskedTextBox&amp;quot;;&lt;br /&gt;
        this.lblMaskedTextBox.Size = new System.Drawing.Size(83, 13);&lt;br /&gt;
        this.lblMaskedTextBox.TabIndex = 7;&lt;br /&gt;
        this.lblMaskedTextBox.Text = &amp;quot;Mas&amp;amp;ked TextBox&amp;quot;;&lt;br /&gt;
        // &lt;br /&gt;
        this.txtMaskedTextBox.BeepOnError = true;&lt;br /&gt;
        this.txtMaskedTextBox.CausesValidation = false;&lt;br /&gt;
        this.txtMaskedTextBox.Location = new System.Drawing.Point(125, 199);&lt;br /&gt;
        this.txtMaskedTextBox.Mask = &amp;quot;(999) 000-0000&amp;quot;;&lt;br /&gt;
        this.txtMaskedTextBox.Name = &amp;quot;txtMaskedTextBox&amp;quot;;&lt;br /&gt;
        this.txtMaskedTextBox.Size = new System.Drawing.Size(220, 20);&lt;br /&gt;
        this.txtMaskedTextBox.TabIndex = 8;&lt;br /&gt;
        this.txtMaskedTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtMaskedTextBox_KeyDown);&lt;br /&gt;
        this.txtMaskedTextBox.MaskInputRejected += new System.Windows.Forms.MaskInputRejectedEventHandler(this.txtMaskedTextBox_MaskInputRejected);&lt;br /&gt;
        // &lt;br /&gt;
        this.btnDisplayData.Location = new System.Drawing.Point(257, 236);&lt;br /&gt;
        this.btnDisplayData.Name = &amp;quot;btnDisplayData&amp;quot;;&lt;br /&gt;
        this.btnDisplayData.Size = new System.Drawing.Size(88, 23);&lt;br /&gt;
        this.btnDisplayData.TabIndex = 6;&lt;br /&gt;
        this.btnDisplayData.Text = &amp;quot;Display Data&amp;quot;;&lt;br /&gt;
        this.btnDisplayData.Click += new System.EventHandler(this.btnDisplayData_Click);&lt;br /&gt;
        // &lt;br /&gt;
        this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);&lt;br /&gt;
        this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;&lt;br /&gt;
        this.ClientSize = new System.Drawing.Size(357, 276);&lt;br /&gt;
        this.Controls.Add(this.txtMaskedTextBox);&lt;br /&gt;
        this.Controls.Add(this.lblMaskedTextBox);&lt;br /&gt;
        this.Controls.Add(this.btnDisplayData);&lt;br /&gt;
        this.Controls.Add(this.txtUpperCase);&lt;br /&gt;
        this.Controls.Add(this.lblUpperCaseOnly);&lt;br /&gt;
        this.Controls.Add(this.txtMultiline);&lt;br /&gt;
        this.Controls.Add(this.lblMultiline);&lt;br /&gt;
        this.Controls.Add(this.txtPassword);&lt;br /&gt;
        this.Controls.Add(this.lblPassword);&lt;br /&gt;
        this.Text = &amp;quot;Fun with Labels and TextBoxes&amp;quot;;&lt;br /&gt;
        this.ResumeLayout(false);&lt;br /&gt;
        this.PerformLayout();&lt;br /&gt;
    }&lt;br /&gt;
    private System.Windows.Forms.Label lblPassword;&lt;br /&gt;
    private System.Windows.Forms.TextBox txtPassword;&lt;br /&gt;
    private System.Windows.Forms.Label lblMultiline;&lt;br /&gt;
    private System.Windows.Forms.TextBox txtMultiline;&lt;br /&gt;
    private System.Windows.Forms.Label lblUpperCaseOnly;&lt;br /&gt;
    private System.Windows.Forms.TextBox txtUpperCase;&lt;br /&gt;
    private System.Windows.Forms.Label lblMaskedTextBox;&lt;br /&gt;
    private System.Windows.Forms.MaskedTextBox txtMaskedTextBox;&lt;br /&gt;
    private System.Windows.Forms.Button btnDisplayData;&lt;br /&gt;
    [STAThread]&lt;br /&gt;
    static void Main() {&lt;br /&gt;
        Application.EnableVisualStyles();&lt;br /&gt;
        Application.Run(new MainWindow());&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
==MaskedTextBox.MaskInputRejected==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt; &lt;br /&gt;
&lt;br /&gt;
using System;&lt;br /&gt;
using System.Collections.Generic;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Data;&lt;br /&gt;
using System.Drawing;&lt;br /&gt;
using System.Text;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
public class MainWindow : Form {&lt;br /&gt;
    public MainWindow() {&lt;br /&gt;
        InitializeComponent();&lt;br /&gt;
        CreateLabelControl();&lt;br /&gt;
    }&lt;br /&gt;
    private void btnDisplayData_Click(object sender, EventArgs e) {&lt;br /&gt;
        string textBoxData = &amp;quot;&amp;quot;;&lt;br /&gt;
        textBoxData += string.Format(&amp;quot;MultiLine:  {0}\n&amp;quot;, txtMultiline.Text);&lt;br /&gt;
        textBoxData += string.Format(&amp;quot;\nPassword:  {0}\n&amp;quot;, txtPassword.Text);&lt;br /&gt;
        textBoxData += string.Format(&amp;quot;\nUppercase:  {0}\n&amp;quot;, txtUpperCase.Text);&lt;br /&gt;
        textBoxData += string.Format(&amp;quot;\nMasked:  {0}\n&amp;quot;, txtMaskedTextBox.Text);&lt;br /&gt;
        MessageBox.Show(textBoxData, &amp;quot;Here is the data in your TextBoxes&amp;quot;);&lt;br /&gt;
    }&lt;br /&gt;
    private void CreateLabelControl() {&lt;br /&gt;
        Label lblInstructions = new Label();&lt;br /&gt;
        lblInstructions.Text = &amp;quot;Please enter values in all the text boxes&amp;quot;;&lt;br /&gt;
        lblInstructions.Font = new Font(&amp;quot;Times New Roman&amp;quot;, 9.75F, FontStyle.Bold);&lt;br /&gt;
        lblInstructions.AutoSize = true;&lt;br /&gt;
        lblInstructions.Location = new System.Drawing.Point(16, 13);&lt;br /&gt;
        lblInstructions.Size = new System.Drawing.Size(240, 16);&lt;br /&gt;
        this.Controls.Add(lblInstructions);&lt;br /&gt;
    }&lt;br /&gt;
    private void txtMaskedTextBox_MaskInputRejected(object sender, MaskInputRejectedEventArgs e) {&lt;br /&gt;
        this.Text = string.Format(&amp;quot;Error: {0}&amp;quot;, e.RejectionHint);&lt;br /&gt;
    }&lt;br /&gt;
    private void txtMaskedTextBox_KeyDown(object sender, KeyEventArgs e) {&lt;br /&gt;
        this.Text = &amp;quot;Labels and TextBoxes&amp;quot;;&lt;br /&gt;
    }&lt;br /&gt;
    private void InitializeComponent() {&lt;br /&gt;
        this.lblPassword = new System.Windows.Forms.Label();&lt;br /&gt;
        this.txtPassword = new System.Windows.Forms.TextBox();&lt;br /&gt;
        this.lblMultiline = new System.Windows.Forms.Label();&lt;br /&gt;
        this.txtMultiline = new System.Windows.Forms.TextBox();&lt;br /&gt;
        this.lblUpperCaseOnly = new System.Windows.Forms.Label();&lt;br /&gt;
        this.txtUpperCase = new System.Windows.Forms.TextBox();&lt;br /&gt;
        this.lblMaskedTextBox = new System.Windows.Forms.Label();&lt;br /&gt;
        this.txtMaskedTextBox = new System.Windows.Forms.MaskedTextBox();&lt;br /&gt;
        this.btnDisplayData = new System.Windows.Forms.Button();&lt;br /&gt;
        this.SuspendLayout();&lt;br /&gt;
        this.lblPassword.AutoSize = true;&lt;br /&gt;
        this.lblPassword.Location = new System.Drawing.Point(13, 43);&lt;br /&gt;
        this.lblPassword.Name = &amp;quot;lblPassword&amp;quot;;&lt;br /&gt;
        this.lblPassword.Size = new System.Drawing.Size(94, 13);&lt;br /&gt;
        this.lblPassword.TabIndex = 0;&lt;br /&gt;
        this.lblPassword.Text = &amp;quot;&amp;amp;Password TextBox:&amp;quot;;&lt;br /&gt;
        this.txtPassword.Location = new System.Drawing.Point(125, 43);&lt;br /&gt;
        this.txtPassword.Name = &amp;quot;txtPassword&amp;quot;;&lt;br /&gt;
        this.txtPassword.PasswordChar = &amp;quot;*&amp;quot;;&lt;br /&gt;
        this.txtPassword.Size = new System.Drawing.Size(220, 20);&lt;br /&gt;
        this.txtPassword.TabIndex = 1;&lt;br /&gt;
        this.lblMultiline.AutoSize = true;&lt;br /&gt;
        this.lblMultiline.Location = new System.Drawing.Point(14, 80);&lt;br /&gt;
        this.lblMultiline.Name = &amp;quot;lblMultiline&amp;quot;;&lt;br /&gt;
        this.lblMultiline.Size = new System.Drawing.Size(86, 13);&lt;br /&gt;
        this.lblMultiline.TabIndex = 2;&lt;br /&gt;
        this.lblMultiline.Text = &amp;quot;&amp;amp;Multiline TextBox:&amp;quot;;&lt;br /&gt;
        this.txtMultiline.Location = new System.Drawing.Point(125, 80);&lt;br /&gt;
        this.txtMultiline.Multiline = true;&lt;br /&gt;
        this.txtMultiline.Name = &amp;quot;txtMultiline&amp;quot;;&lt;br /&gt;
        this.txtMultiline.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;&lt;br /&gt;
        this.txtMultiline.Size = new System.Drawing.Size(220, 52);&lt;br /&gt;
        this.txtMultiline.TabIndex = 3;&lt;br /&gt;
        this.lblUpperCaseOnly.AutoSize = true;&lt;br /&gt;
        this.lblUpperCaseOnly.Location = new System.Drawing.Point(15, 157);&lt;br /&gt;
        this.lblUpperCaseOnly.Name = &amp;quot;lblUpperCaseOnly&amp;quot;;&lt;br /&gt;
        this.lblUpperCaseOnly.Size = new System.Drawing.Size(82, 13);&lt;br /&gt;
        this.lblUpperCaseOnly.TabIndex = 4;&lt;br /&gt;
        this.lblUpperCaseOnly.Text = &amp;quot;&amp;amp;Uppercase Only:&amp;quot;;&lt;br /&gt;
        this.txtUpperCase.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;&lt;br /&gt;
        this.txtUpperCase.Location = new System.Drawing.Point(125, 157);&lt;br /&gt;
        this.txtUpperCase.Name = &amp;quot;txtUpperCase&amp;quot;;&lt;br /&gt;
        this.txtUpperCase.Size = new System.Drawing.Size(220, 20);&lt;br /&gt;
        this.txtUpperCase.TabIndex = 5;&lt;br /&gt;
        // &lt;br /&gt;
        this.lblMaskedTextBox.AutoSize = true;&lt;br /&gt;
        this.lblMaskedTextBox.Location = new System.Drawing.Point(15, 199);&lt;br /&gt;
        this.lblMaskedTextBox.Name = &amp;quot;lblMaskedTextBox&amp;quot;;&lt;br /&gt;
        this.lblMaskedTextBox.Size = new System.Drawing.Size(83, 13);&lt;br /&gt;
        this.lblMaskedTextBox.TabIndex = 7;&lt;br /&gt;
        this.lblMaskedTextBox.Text = &amp;quot;Mas&amp;amp;ked TextBox&amp;quot;;&lt;br /&gt;
        // &lt;br /&gt;
        this.txtMaskedTextBox.BeepOnError = true;&lt;br /&gt;
        this.txtMaskedTextBox.CausesValidation = false;&lt;br /&gt;
        this.txtMaskedTextBox.Location = new System.Drawing.Point(125, 199);&lt;br /&gt;
        this.txtMaskedTextBox.Mask = &amp;quot;(999) 000-0000&amp;quot;;&lt;br /&gt;
        this.txtMaskedTextBox.Name = &amp;quot;txtMaskedTextBox&amp;quot;;&lt;br /&gt;
        this.txtMaskedTextBox.Size = new System.Drawing.Size(220, 20);&lt;br /&gt;
        this.txtMaskedTextBox.TabIndex = 8;&lt;br /&gt;
        this.txtMaskedTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.txtMaskedTextBox_KeyDown);&lt;br /&gt;
        this.txtMaskedTextBox.MaskInputRejected += new System.Windows.Forms.MaskInputRejectedEventHandler(this.txtMaskedTextBox_MaskInputRejected);&lt;br /&gt;
        // &lt;br /&gt;
        this.btnDisplayData.Location = new System.Drawing.Point(257, 236);&lt;br /&gt;
        this.btnDisplayData.Name = &amp;quot;btnDisplayData&amp;quot;;&lt;br /&gt;
        this.btnDisplayData.Size = new System.Drawing.Size(88, 23);&lt;br /&gt;
        this.btnDisplayData.TabIndex = 6;&lt;br /&gt;
        this.btnDisplayData.Text = &amp;quot;Display Data&amp;quot;;&lt;br /&gt;
        this.btnDisplayData.Click += new System.EventHandler(this.btnDisplayData_Click);&lt;br /&gt;
        // &lt;br /&gt;
        this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);&lt;br /&gt;
        this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font;&lt;br /&gt;
        this.ClientSize = new System.Drawing.Size(357, 276);&lt;br /&gt;
        this.Controls.Add(this.txtMaskedTextBox);&lt;br /&gt;
        this.Controls.Add(this.lblMaskedTextBox);&lt;br /&gt;
        this.Controls.Add(this.btnDisplayData);&lt;br /&gt;
        this.Controls.Add(this.txtUpperCase);&lt;br /&gt;
        this.Controls.Add(this.lblUpperCaseOnly);&lt;br /&gt;
        this.Controls.Add(this.txtMultiline);&lt;br /&gt;
        this.Controls.Add(this.lblMultiline);&lt;br /&gt;
        this.Controls.Add(this.txtPassword);&lt;br /&gt;
        this.Controls.Add(this.lblPassword);&lt;br /&gt;
        this.Text = &amp;quot;Fun with Labels and TextBoxes&amp;quot;;&lt;br /&gt;
        this.ResumeLayout(false);&lt;br /&gt;
        this.PerformLayout();&lt;br /&gt;
    }&lt;br /&gt;
    private System.Windows.Forms.Label lblPassword;&lt;br /&gt;
    private System.Windows.Forms.TextBox txtPassword;&lt;br /&gt;
    private System.Windows.Forms.Label lblMultiline;&lt;br /&gt;
    private System.Windows.Forms.TextBox txtMultiline;&lt;br /&gt;
    private System.Windows.Forms.Label lblUpperCaseOnly;&lt;br /&gt;
    private System.Windows.Forms.TextBox txtUpperCase;&lt;br /&gt;
    private System.Windows.Forms.Label lblMaskedTextBox;&lt;br /&gt;
    private System.Windows.Forms.MaskedTextBox txtMaskedTextBox;&lt;br /&gt;
    private System.Windows.Forms.Button btnDisplayData;&lt;br /&gt;
    [STAThread]&lt;br /&gt;
    static void Main() {&lt;br /&gt;
        Application.EnableVisualStyles();&lt;br /&gt;
        Application.Run(new MainWindow());&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>