<?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%2FCSharp_Tutorial%2FGUI_Windows_Forms%2FPassword_Field</id>
		<title>Csharp/CSharp Tutorial/GUI Windows Forms/Password Field - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://nfex.ru/index.php?action=history&amp;feed=atom&amp;title=Csharp%2FCSharp_Tutorial%2FGUI_Windows_Forms%2FPassword_Field"/>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/GUI_Windows_Forms/Password_Field&amp;action=history"/>
		<updated>2026-04-30T00:11:24Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/GUI_Windows_Forms/Password_Field&amp;diff=5449&amp;oldid=prev</id>
		<title> в 15:31, 26 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/GUI_Windows_Forms/Password_Field&amp;diff=5449&amp;oldid=prev"/>
				<updated>2010-05-26T15:31:53Z</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/CSharp_Tutorial/GUI_Windows_Forms/Password_Field&amp;diff=5450&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://nfex.ru/index.php?title=Csharp/CSharp_Tutorial/GUI_Windows_Forms/Password_Field&amp;diff=5450&amp;oldid=prev"/>
				<updated>2010-05-26T12:15:32Z</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;==Password field==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;gt;using System;&lt;br /&gt;
using System.ruponentModel;&lt;br /&gt;
using System.Windows.Forms;&lt;br /&gt;
public class TextForm : System.Windows.Forms.Form&lt;br /&gt;
{&lt;br /&gt;
    private System.ruponentModel.Container components = null;&lt;br /&gt;
  private System.Windows.Forms.Button btnPasswordDecoderRing;&lt;br /&gt;
  private System.Windows.Forms.Label label3;&lt;br /&gt;
  private System.Windows.Forms.TextBox passwordBox;&lt;br /&gt;
  private System.Windows.Forms.Label label2;&lt;br /&gt;
  private System.Windows.Forms.TextBox capsOnlyBox;&lt;br /&gt;
  private System.Windows.Forms.Button btnGetMultiLineText;&lt;br /&gt;
  private System.Windows.Forms.Label label1;&lt;br /&gt;
  private System.Windows.Forms.TextBox multiLineBox;&lt;br /&gt;
    public TextForm()&lt;br /&gt;
    {&lt;br /&gt;
        InitializeComponent();&lt;br /&gt;
    CenterToScreen();&lt;br /&gt;
    }&lt;br /&gt;
  protected override void Dispose( bool disposing )&lt;br /&gt;
  {&lt;br /&gt;
    if( disposing )&lt;br /&gt;
    {&lt;br /&gt;
      if (components != null) &lt;br /&gt;
      {&lt;br /&gt;
        components.Dispose();&lt;br /&gt;
      }&lt;br /&gt;
    }&lt;br /&gt;
    base.Dispose( disposing );&lt;br /&gt;
  }&lt;br /&gt;
  private void InitializeComponent()&lt;br /&gt;
  {&lt;br /&gt;
    this.capsOnlyBox = new System.Windows.Forms.TextBox();&lt;br /&gt;
    this.multiLineBox = new System.Windows.Forms.TextBox();&lt;br /&gt;
    this.label1 = new System.Windows.Forms.Label();&lt;br /&gt;
    this.label2 = new System.Windows.Forms.Label();&lt;br /&gt;
    this.passwordBox = new System.Windows.Forms.TextBox();&lt;br /&gt;
    this.btnGetMultiLineText = new System.Windows.Forms.Button();&lt;br /&gt;
    this.btnPasswordDecoderRing = new System.Windows.Forms.Button();&lt;br /&gt;
    this.label3 = new System.Windows.Forms.Label();&lt;br /&gt;
    this.SuspendLayout();&lt;br /&gt;
    // &lt;br /&gt;
    // capsOnlyBox&lt;br /&gt;
    // &lt;br /&gt;
    this.capsOnlyBox.CharacterCasing = System.Windows.Forms.CharacterCasing.Upper;&lt;br /&gt;
    this.capsOnlyBox.Location = new System.Drawing.Point(14, 176);&lt;br /&gt;
    this.capsOnlyBox.Name = &amp;quot;capsOnlyBox&amp;quot;;&lt;br /&gt;
    this.capsOnlyBox.Size = new System.Drawing.Size(120, 20);&lt;br /&gt;
    this.capsOnlyBox.TabIndex = 3;&lt;br /&gt;
    this.capsOnlyBox.Text = &amp;quot;&amp;quot;;&lt;br /&gt;
    // &lt;br /&gt;
    // multiLineBox&lt;br /&gt;
    // &lt;br /&gt;
    this.multiLineBox.AcceptsReturn = true;&lt;br /&gt;
    this.multiLineBox.AcceptsTab = true;&lt;br /&gt;
    this.multiLineBox.Location = new System.Drawing.Point(152, 8);&lt;br /&gt;
    this.multiLineBox.Multiline = true;&lt;br /&gt;
    this.multiLineBox.Name = &amp;quot;multiLineBox&amp;quot;;&lt;br /&gt;
    this.multiLineBox.ScrollBars = System.Windows.Forms.ScrollBars.Vertical;&lt;br /&gt;
    this.multiLineBox.Size = new System.Drawing.Size(240, 104);&lt;br /&gt;
    this.multiLineBox.TabIndex = 0;&lt;br /&gt;
    this.multiLineBox.Text = &amp;quot;Type some stuff here (and hit the return and tab keys...)&amp;quot;;&lt;br /&gt;
    // &lt;br /&gt;
    // label1&lt;br /&gt;
    // &lt;br /&gt;
    this.label1.Font = new System.Drawing.Font(&amp;quot;Microsoft Sans Serif&amp;quot;, 10F);&lt;br /&gt;
    this.label1.Location = new System.Drawing.Point(8, 8);&lt;br /&gt;
    this.label1.Name = &amp;quot;label1&amp;quot;;&lt;br /&gt;
    this.label1.Size = new System.Drawing.Size(136, 56);&lt;br /&gt;
    this.label1.TabIndex = 1;&lt;br /&gt;
    this.label1.Text = &amp;quot;A multiline textbox that accepts tabs and return keystrokes.&amp;quot;;&lt;br /&gt;
    // &lt;br /&gt;
    // label2&lt;br /&gt;
    // &lt;br /&gt;
    this.label2.Font = new System.Drawing.Font(&amp;quot;Comic Sans MS&amp;quot;, 12F);&lt;br /&gt;
    this.label2.Location = new System.Drawing.Point(14, 144);&lt;br /&gt;
    this.label2.Name = &amp;quot;label2&amp;quot;;&lt;br /&gt;
    this.label2.Size = new System.Drawing.Size(106, 24);&lt;br /&gt;
    this.label2.TabIndex = 4;&lt;br /&gt;
    this.label2.Text = &amp;quot;Caps only!!&amp;quot;;&lt;br /&gt;
    // &lt;br /&gt;
    // passwordBox&lt;br /&gt;
    // &lt;br /&gt;
    this.passwordBox.Location = new System.Drawing.Point(160, 176);&lt;br /&gt;
    this.passwordBox.Name = &amp;quot;passwordBox&amp;quot;;&lt;br /&gt;
    this.passwordBox.PasswordChar = &amp;quot;$&amp;quot;;&lt;br /&gt;
    this.passwordBox.Size = new System.Drawing.Size(232, 20);&lt;br /&gt;
    this.passwordBox.TabIndex = 5;&lt;br /&gt;
    this.passwordBox.Text = &amp;quot;COM seems so old fashion&amp;quot;;&lt;br /&gt;
    // &lt;br /&gt;
    // btnGetMultiLineText&lt;br /&gt;
    // &lt;br /&gt;
    this.btnGetMultiLineText.Location = new System.Drawing.Point(13, 72);&lt;br /&gt;
    this.btnGetMultiLineText.Name = &amp;quot;btnGetMultiLineText&amp;quot;;&lt;br /&gt;
    this.btnGetMultiLineText.Size = new System.Drawing.Size(120, 32);&lt;br /&gt;
    this.btnGetMultiLineText.TabIndex = 2;&lt;br /&gt;
    this.btnGetMultiLineText.Text = &amp;quot;Get Text&amp;quot;;&lt;br /&gt;
    this.btnGetMultiLineText.Click += new System.EventHandler(this.btnGetMultiLineText_Click);&lt;br /&gt;
    // &lt;br /&gt;
    // btnPasswordDecoderRing&lt;br /&gt;
    // &lt;br /&gt;
    this.btnPasswordDecoderRing.Location = new System.Drawing.Point(280, 144);&lt;br /&gt;
    this.btnPasswordDecoderRing.Name = &amp;quot;btnPasswordDecoderRing&amp;quot;;&lt;br /&gt;
    this.btnPasswordDecoderRing.Size = new System.Drawing.Size(112, 24);&lt;br /&gt;
    this.btnPasswordDecoderRing.TabIndex = 7;&lt;br /&gt;
    this.btnPasswordDecoderRing.Text = &amp;quot;Decode Password&amp;quot;;&lt;br /&gt;
    this.btnPasswordDecoderRing.Click += new System.EventHandler(this.btnPasswordDecoderRing_Click);&lt;br /&gt;
    // &lt;br /&gt;
    // label3&lt;br /&gt;
    // &lt;br /&gt;
    this.label3.Font = new System.Drawing.Font(&amp;quot;Comic Sans MS&amp;quot;, 12F);&lt;br /&gt;
    this.label3.Location = new System.Drawing.Point(152, 144);&lt;br /&gt;
    this.label3.Name = &amp;quot;label3&amp;quot;;&lt;br /&gt;
    this.label3.Size = new System.Drawing.Size(120, 24);&lt;br /&gt;
    this.label3.TabIndex = 6;&lt;br /&gt;
    this.label3.Text = &amp;quot;Password Box&amp;quot;;&lt;br /&gt;
    // &lt;br /&gt;
    // TextForm&lt;br /&gt;
    // &lt;br /&gt;
    this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);&lt;br /&gt;
    this.ClientSize = new System.Drawing.Size(408, 221);&lt;br /&gt;
    this.Controls.Add(this.btnPasswordDecoderRing);&lt;br /&gt;
    this.Controls.Add(this.label3);&lt;br /&gt;
    this.Controls.Add(this.passwordBox);&lt;br /&gt;
    this.Controls.Add(this.label2);&lt;br /&gt;
    this.Controls.Add(this.capsOnlyBox);&lt;br /&gt;
    this.Controls.Add(this.btnGetMultiLineText);&lt;br /&gt;
    this.Controls.Add(this.label1);&lt;br /&gt;
    this.Controls.Add(this.multiLineBox);&lt;br /&gt;
    this.Name = &amp;quot;TextForm&amp;quot;;&lt;br /&gt;
    this.Text = &amp;quot;TextBox Types&amp;quot;;&lt;br /&gt;
    this.ResumeLayout(false);&lt;br /&gt;
  }&lt;br /&gt;
  protected void btnPasswordDecoderRing_Click (object sender, System.EventArgs e)&lt;br /&gt;
  {&lt;br /&gt;
    MessageBox.Show(passwordBox.Text, &amp;quot;Your password is:&amp;quot;);&lt;br /&gt;
  }&lt;br /&gt;
  protected void btnGetMultiLineText_Click (object sender, System.EventArgs e)&lt;br /&gt;
  {&lt;br /&gt;
    MessageBox.Show(multiLineBox.Text, &amp;quot;Here is your text&amp;quot;);&lt;br /&gt;
  }&lt;br /&gt;
    public static void Main(string[] args) &lt;br /&gt;
    {&lt;br /&gt;
        Application.Run(new TextForm());&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Password fields match==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
&amp;lt;source lang=&amp;quot;csharp&amp;quot;&amp;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.Windows.Forms;&lt;br /&gt;
partial class Form1 : Form&lt;br /&gt;
{&lt;br /&gt;
    public Form1()&lt;br /&gt;
    {&lt;br /&gt;
        InitializeComponent();&lt;br /&gt;
    }&lt;br /&gt;
    private void button1_Click(object sender, EventArgs e)&lt;br /&gt;
    {&lt;br /&gt;
        if ( UserIsValid( password1.Text, password2.Text ))&lt;br /&gt;
        {&lt;br /&gt;
            MessageBox.Show(&amp;quot;Congratulations - they match!&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
        else&lt;br /&gt;
        {&lt;br /&gt;
            MessageBox.Show(&amp;quot;They don&amp;quot;t match - try again.&amp;quot;);&lt;br /&gt;
        }&lt;br /&gt;
    }&lt;br /&gt;
    private bool UserIsValid(string firstPassword, string secondPassword)&lt;br /&gt;
    {&lt;br /&gt;
        return (firstPassword == secondPassword);&lt;br /&gt;
    }&lt;br /&gt;
}&lt;br /&gt;
partial class Form1&lt;br /&gt;
{&lt;br /&gt;
    private void InitializeComponent()&lt;br /&gt;
    {&lt;br /&gt;
        this.label1 = new System.Windows.Forms.Label();&lt;br /&gt;
        this.label2 = new System.Windows.Forms.Label();&lt;br /&gt;
        this.password1 = new System.Windows.Forms.TextBox();&lt;br /&gt;
        this.password2 = new System.Windows.Forms.TextBox();&lt;br /&gt;
        this.button1 = new System.Windows.Forms.Button();&lt;br /&gt;
        this.SuspendLayout();&lt;br /&gt;
        this.label1.AutoSize = true;&lt;br /&gt;
        this.label1.Location = new System.Drawing.Point(13, 10);&lt;br /&gt;
        this.label1.Name = &amp;quot;label1&amp;quot;;&lt;br /&gt;
        this.label1.Size = new System.Drawing.Size(83, 14);&lt;br /&gt;
        this.label1.TabIndex = 0;&lt;br /&gt;
        this.label1.Text = &amp;quot;Enter password&amp;quot;;&lt;br /&gt;
        this.label2.AutoSize = true;&lt;br /&gt;
        this.label2.Location = new System.Drawing.Point(25, 37);&lt;br /&gt;
        this.label2.Name = &amp;quot;label2&amp;quot;;&lt;br /&gt;
        this.label2.Size = new System.Drawing.Size(71, 14);&lt;br /&gt;
        this.label2.TabIndex = 1;&lt;br /&gt;
        this.label2.Text = &amp;quot;Enter it again&amp;quot;;&lt;br /&gt;
        this.password1.Location = new System.Drawing.Point(103, 7);&lt;br /&gt;
        this.password1.Name = &amp;quot;password1&amp;quot;;&lt;br /&gt;
        this.password1.Size = new System.Drawing.Size(182, 20);&lt;br /&gt;
        this.password1.TabIndex = 2;&lt;br /&gt;
        this.password2.Location = new System.Drawing.Point(103, 34);&lt;br /&gt;
        this.password2.Name = &amp;quot;password2&amp;quot;;&lt;br /&gt;
        this.password2.Size = new System.Drawing.Size(182, 20);&lt;br /&gt;
        this.password2.TabIndex = 3;&lt;br /&gt;
        this.button1.Location = new System.Drawing.Point(210, 63);&lt;br /&gt;
        this.button1.Name = &amp;quot;button1&amp;quot;;&lt;br /&gt;
        this.button1.TabIndex = 4;&lt;br /&gt;
        this.button1.Text = &amp;quot;OK&amp;quot;;&lt;br /&gt;
        this.button1.Click += new System.EventHandler(this.button1_Click);&lt;br /&gt;
        this.AutoScaleBaseSize = new System.Drawing.Size(5, 13);&lt;br /&gt;
        this.ClientSize = new System.Drawing.Size(302, 98);&lt;br /&gt;
        this.Controls.Add(this.button1);&lt;br /&gt;
        this.Controls.Add(this.password2);&lt;br /&gt;
        this.Controls.Add(this.password1);&lt;br /&gt;
        this.Controls.Add(this.label2);&lt;br /&gt;
        this.Controls.Add(this.label1);&lt;br /&gt;
        this.Name = &amp;quot;Form1&amp;quot;;&lt;br /&gt;
        this.Text = &amp;quot;Form1&amp;quot;;&lt;br /&gt;
        this.ResumeLayout(false);&lt;br /&gt;
        this.PerformLayout();&lt;br /&gt;
    }&lt;br /&gt;
    private System.Windows.Forms.Label label1;&lt;br /&gt;
    private System.Windows.Forms.Label label2;&lt;br /&gt;
    private System.Windows.Forms.TextBox password1;&lt;br /&gt;
    private System.Windows.Forms.TextBox password2;&lt;br /&gt;
    private System.Windows.Forms.Button button1;&lt;br /&gt;
}&lt;br /&gt;
public class PasswordFieldCompare&lt;br /&gt;
{&lt;br /&gt;
    [STAThread]&lt;br /&gt;
    static void Main()&lt;br /&gt;
    {&lt;br /&gt;
        Application.Run(new Form1());&lt;br /&gt;
    }&lt;br /&gt;
}&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	</feed>