📄 frmupdate.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace StudentsClient
{
/// <summary>
/// FrmUpdate 的摘要说明。
/// </summary>
public class FrmUpdate : System.Windows.Forms.Form
{
private System.Windows.Forms.Button btnCancel;
private System.Windows.Forms.Button btnUpdate;
private System.Windows.Forms.TextBox txtPwd;
private System.Windows.Forms.Label lblNewPwd;
private System.Windows.Forms.TextBox txtOldPwd;
private System.Windows.Forms.Label lblOldPwd;
private System.Windows.Forms.Label lblSurePwd;
private System.Windows.Forms.TextBox txtSurePwd;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public FrmUpdate()
{
//
// Windows 窗体设计器支持所必需的
//
InitializeComponent();
//
// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
//
}
/// <summary>
/// 清理所有正在使用的资源。
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows 窗体设计器生成的代码
/// <summary>
/// 设计器支持所需的方法 - 不要使用代码编辑器修改
/// 此方法的内容。
/// </summary>
private void InitializeComponent()
{
this.btnCancel = new System.Windows.Forms.Button();
this.btnUpdate = new System.Windows.Forms.Button();
this.txtPwd = new System.Windows.Forms.TextBox();
this.lblNewPwd = new System.Windows.Forms.Label();
this.txtOldPwd = new System.Windows.Forms.TextBox();
this.lblOldPwd = new System.Windows.Forms.Label();
this.txtSurePwd = new System.Windows.Forms.TextBox();
this.lblSurePwd = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// btnCancel
//
this.btnCancel.Location = new System.Drawing.Point(160, 128);
this.btnCancel.Name = "btnCancel";
this.btnCancel.Size = new System.Drawing.Size(58, 24);
this.btnCancel.TabIndex = 17;
this.btnCancel.Text = "取消";
//
// btnUpdate
//
this.btnUpdate.Location = new System.Drawing.Point(80, 128);
this.btnUpdate.Name = "btnUpdate";
this.btnUpdate.Size = new System.Drawing.Size(60, 24);
this.btnUpdate.TabIndex = 16;
this.btnUpdate.Text = "修改";
//
// txtPwd
//
this.txtPwd.Location = new System.Drawing.Point(112, 48);
this.txtPwd.Name = "txtPwd";
this.txtPwd.PasswordChar = '*';
this.txtPwd.Size = new System.Drawing.Size(136, 21);
this.txtPwd.TabIndex = 15;
this.txtPwd.Text = "";
//
// lblNewPwd
//
this.lblNewPwd.Location = new System.Drawing.Point(48, 56);
this.lblNewPwd.Name = "lblNewPwd";
this.lblNewPwd.Size = new System.Drawing.Size(56, 20);
this.lblNewPwd.TabIndex = 14;
this.lblNewPwd.Text = "新密码:";
//
// txtOldPwd
//
this.txtOldPwd.Location = new System.Drawing.Point(112, 16);
this.txtOldPwd.Name = "txtOldPwd";
this.txtOldPwd.Size = new System.Drawing.Size(136, 21);
this.txtOldPwd.TabIndex = 13;
this.txtOldPwd.Text = "";
//
// lblOldPwd
//
this.lblOldPwd.Location = new System.Drawing.Point(48, 24);
this.lblOldPwd.Name = "lblOldPwd";
this.lblOldPwd.Size = new System.Drawing.Size(56, 18);
this.lblOldPwd.TabIndex = 12;
this.lblOldPwd.Text = "旧密码:";
//
// txtSurePwd
//
this.txtSurePwd.Location = new System.Drawing.Point(112, 80);
this.txtSurePwd.Name = "txtSurePwd";
this.txtSurePwd.PasswordChar = '*';
this.txtSurePwd.Size = new System.Drawing.Size(136, 21);
this.txtSurePwd.TabIndex = 15;
this.txtSurePwd.Text = "";
//
// lblSurePwd
//
this.lblSurePwd.Location = new System.Drawing.Point(24, 88);
this.lblSurePwd.Name = "lblSurePwd";
this.lblSurePwd.Size = new System.Drawing.Size(80, 20);
this.lblSurePwd.TabIndex = 14;
this.lblSurePwd.Text = "确认新密码:";
//
// FrmUpdate
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(296, 165);
this.Controls.Add(this.btnCancel);
this.Controls.Add(this.btnUpdate);
this.Controls.Add(this.txtPwd);
this.Controls.Add(this.lblNewPwd);
this.Controls.Add(this.txtOldPwd);
this.Controls.Add(this.lblOldPwd);
this.Controls.Add(this.txtSurePwd);
this.Controls.Add(this.lblSurePwd);
this.Name = "FrmUpdate";
this.Text = "修改密码";
this.ResumeLayout(false);
}
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -