📄 frmuserdetails.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace NewProject
{
/// <summary>
/// Summary description for frmResult.
/// </summary>
public class frmUserDetails : System.Windows.Forms.Form
{
private System.Windows.Forms.Button btnPrint;
private System.Windows.Forms.Button btnClose;
private System.Windows.Forms.Label lblUsrNameVal;
private System.Windows.Forms.Label lblEmail;
private System.Windows.Forms.Label lblEmailVal;
private System.Windows.Forms.Label lblFirstName;
private System.Windows.Forms.Label lblUserDetails;
private System.Windows.Forms.Label lblLastName;
private System.Windows.Forms.Label lblGender;
private System.Windows.Forms.Label lblPhone;
private System.Windows.Forms.Label lblFirstNameVal;
private System.Windows.Forms.Label lblLastNameVal;
private System.Windows.Forms.Label lblStatusVal;
private System.Windows.Forms.Label lblUserName;
private System.Windows.Forms.Label lblStatus;
private System.Windows.Forms.Label lblGenderVal;
private System.Windows.Forms.Label lblPhoneVal;
private System.Windows.Forms.Button btnModify;
/// <summary>
/// Required designer variable.
/// </summary>
private System.ComponentModel.Container components = null;
public frmUserDetails()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
// public static void Main()
// {
// Application.Run(new frmUserDetails());
// }
#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()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(frmUserDetails));
this.lblFirstName = new System.Windows.Forms.Label();
this.lblUserDetails = new System.Windows.Forms.Label();
this.lblLastName = new System.Windows.Forms.Label();
this.lblGender = new System.Windows.Forms.Label();
this.lblPhone = new System.Windows.Forms.Label();
this.btnPrint = new System.Windows.Forms.Button();
this.btnClose = new System.Windows.Forms.Button();
this.lblUsrNameVal = new System.Windows.Forms.Label();
this.lblFirstNameVal = new System.Windows.Forms.Label();
this.lblLastNameVal = new System.Windows.Forms.Label();
this.lblStatusVal = new System.Windows.Forms.Label();
this.lblUserName = new System.Windows.Forms.Label();
this.lblEmail = new System.Windows.Forms.Label();
this.lblStatus = new System.Windows.Forms.Label();
this.lblGenderVal = new System.Windows.Forms.Label();
this.lblPhoneVal = new System.Windows.Forms.Label();
this.lblEmailVal = new System.Windows.Forms.Label();
this.btnModify = new System.Windows.Forms.Button();
this.SuspendLayout();
//
// lblFirstName
//
this.lblFirstName.AutoSize = true;
this.lblFirstName.BackColor = System.Drawing.Color.Transparent;
this.lblFirstName.Font = new System.Drawing.Font("Century Gothic", 9F);
this.lblFirstName.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.lblFirstName.Location = new System.Drawing.Point(225, 125);
this.lblFirstName.Name = "lblFirstName";
this.lblFirstName.Size = new System.Drawing.Size(66, 18);
this.lblFirstName.TabIndex = 0;
this.lblFirstName.Text = "First Name";
//
// lblUserDetails
//
this.lblUserDetails.AutoSize = true;
this.lblUserDetails.BackColor = System.Drawing.Color.Transparent;
this.lblUserDetails.Font = new System.Drawing.Font("Century Gothic", 21.75F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.lblUserDetails.ForeColor = System.Drawing.Color.FromArgb(((System.Byte)(192)), ((System.Byte)(192)), ((System.Byte)(255)));
this.lblUserDetails.Location = new System.Drawing.Point(210, 15);
this.lblUserDetails.Name = "lblUserDetails";
this.lblUserDetails.Size = new System.Drawing.Size(265, 39);
this.lblUserDetails.TabIndex = 22;
this.lblUserDetails.Text = "U s e r D e t a i l s";
//
// lblLastName
//
this.lblLastName.AutoSize = true;
this.lblLastName.BackColor = System.Drawing.Color.Transparent;
this.lblLastName.Font = new System.Drawing.Font("Century Gothic", 9F);
this.lblLastName.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.lblLastName.Location = new System.Drawing.Point(225, 160);
this.lblLastName.Name = "lblLastName";
this.lblLastName.Size = new System.Drawing.Size(68, 18);
this.lblLastName.TabIndex = 23;
this.lblLastName.Text = "Last Name";
//
// lblGender
//
this.lblGender.AutoSize = true;
this.lblGender.BackColor = System.Drawing.Color.Transparent;
this.lblGender.Font = new System.Drawing.Font("Century Gothic", 9F);
this.lblGender.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.lblGender.Location = new System.Drawing.Point(225, 230);
this.lblGender.Name = "lblGender";
this.lblGender.Size = new System.Drawing.Size(51, 18);
this.lblGender.TabIndex = 24;
this.lblGender.Text = "Gender";
//
// lblPhone
//
this.lblPhone.AutoSize = true;
this.lblPhone.BackColor = System.Drawing.Color.Transparent;
this.lblPhone.Font = new System.Drawing.Font("Century Gothic", 9F);
this.lblPhone.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.lblPhone.Location = new System.Drawing.Point(225, 265);
this.lblPhone.Name = "lblPhone";
this.lblPhone.Size = new System.Drawing.Size(43, 18);
this.lblPhone.TabIndex = 25;
this.lblPhone.Text = "Phone";
//
// btnPrint
//
this.btnPrint.BackColor = System.Drawing.Color.Transparent;
this.btnPrint.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.btnPrint.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.btnPrint.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.btnPrint.Location = new System.Drawing.Point(315, 375);
this.btnPrint.Name = "btnPrint";
this.btnPrint.Size = new System.Drawing.Size(80, 24);
this.btnPrint.TabIndex = 30;
this.btnPrint.Text = "&Print";
//
// btnClose
//
this.btnClose.BackColor = System.Drawing.Color.Transparent;
this.btnClose.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.btnClose.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.btnClose.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.btnClose.Location = new System.Drawing.Point(420, 375);
this.btnClose.Name = "btnClose";
this.btnClose.Size = new System.Drawing.Size(80, 24);
this.btnClose.TabIndex = 31;
this.btnClose.Text = "&Close";
this.btnClose.Click += new System.EventHandler(this.btnClose_Click);
//
// lblUsrNameVal
//
this.lblUsrNameVal.AutoSize = true;
this.lblUsrNameVal.BackColor = System.Drawing.Color.Transparent;
this.lblUsrNameVal.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.lblUsrNameVal.Font = new System.Drawing.Font("Century Gothic", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.lblUsrNameVal.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.lblUsrNameVal.Location = new System.Drawing.Point(390, 90);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -