📄 frmuserdetails.cs
字号:
this.lblUsrNameVal.Name = "lblUsrNameVal";
this.lblUsrNameVal.Size = new System.Drawing.Size(74, 19);
this.lblUsrNameVal.TabIndex = 0;
this.lblUsrNameVal.Text = "John Smith";
//
// lblFirstNameVal
//
this.lblFirstNameVal.AutoSize = true;
this.lblFirstNameVal.BackColor = System.Drawing.Color.Transparent;
this.lblFirstNameVal.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.lblFirstNameVal.Font = new System.Drawing.Font("Century Gothic", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.lblFirstNameVal.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.lblFirstNameVal.Location = new System.Drawing.Point(390, 125);
this.lblFirstNameVal.Name = "lblFirstNameVal";
this.lblFirstNameVal.Size = new System.Drawing.Size(40, 19);
this.lblFirstNameVal.TabIndex = 32;
this.lblFirstNameVal.Text = "John ";
//
// lblLastNameVal
//
this.lblLastNameVal.AutoSize = true;
this.lblLastNameVal.BackColor = System.Drawing.Color.Transparent;
this.lblLastNameVal.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.lblLastNameVal.Font = new System.Drawing.Font("Century Gothic", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.lblLastNameVal.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.lblLastNameVal.Location = new System.Drawing.Point(390, 160);
this.lblLastNameVal.Name = "lblLastNameVal";
this.lblLastNameVal.Size = new System.Drawing.Size(40, 19);
this.lblLastNameVal.TabIndex = 33;
this.lblLastNameVal.Text = "Smith";
//
// lblStatusVal
//
this.lblStatusVal.AutoSize = true;
this.lblStatusVal.BackColor = System.Drawing.Color.Transparent;
this.lblStatusVal.FlatStyle = System.Windows.Forms.FlatStyle.Flat;
this.lblStatusVal.Font = new System.Drawing.Font("Century Gothic", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.lblStatusVal.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.lblStatusVal.Location = new System.Drawing.Point(390, 195);
this.lblStatusVal.Name = "lblStatusVal";
this.lblStatusVal.Size = new System.Drawing.Size(47, 19);
this.lblStatusVal.TabIndex = 34;
this.lblStatusVal.Text = "Active";
//
// lblUserName
//
this.lblUserName.AutoSize = true;
this.lblUserName.BackColor = System.Drawing.Color.Transparent;
this.lblUserName.Font = new System.Drawing.Font("Century Gothic", 9F);
this.lblUserName.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.lblUserName.Location = new System.Drawing.Point(225, 90);
this.lblUserName.Name = "lblUserName";
this.lblUserName.Size = new System.Drawing.Size(70, 18);
this.lblUserName.TabIndex = 35;
this.lblUserName.Text = "User Name";
//
// lblEmail
//
this.lblEmail.AutoSize = true;
this.lblEmail.BackColor = System.Drawing.Color.Transparent;
this.lblEmail.Font = new System.Drawing.Font("Century Gothic", 9F);
this.lblEmail.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.lblEmail.Location = new System.Drawing.Point(225, 300);
this.lblEmail.Name = "lblEmail";
this.lblEmail.Size = new System.Drawing.Size(40, 18);
this.lblEmail.TabIndex = 36;
this.lblEmail.Text = "E-mail";
//
// lblStatus
//
this.lblStatus.AutoSize = true;
this.lblStatus.BackColor = System.Drawing.Color.Transparent;
this.lblStatus.Font = new System.Drawing.Font("Century Gothic", 9F);
this.lblStatus.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.lblStatus.Location = new System.Drawing.Point(225, 195);
this.lblStatus.Name = "lblStatus";
this.lblStatus.Size = new System.Drawing.Size(40, 18);
this.lblStatus.TabIndex = 37;
this.lblStatus.Text = "Status";
//
// lblGenderVal
//
this.lblGenderVal.AutoSize = true;
this.lblGenderVal.BackColor = System.Drawing.Color.Transparent;
this.lblGenderVal.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.lblGenderVal.Font = new System.Drawing.Font("Century Gothic", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.lblGenderVal.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.lblGenderVal.Location = new System.Drawing.Point(390, 230);
this.lblGenderVal.Name = "lblGenderVal";
this.lblGenderVal.Size = new System.Drawing.Size(38, 19);
this.lblGenderVal.TabIndex = 38;
this.lblGenderVal.Text = "Male";
//
// lblPhoneVal
//
this.lblPhoneVal.AutoSize = true;
this.lblPhoneVal.BackColor = System.Drawing.Color.Transparent;
this.lblPhoneVal.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.lblPhoneVal.Font = new System.Drawing.Font("Century Gothic", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.lblPhoneVal.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.lblPhoneVal.Location = new System.Drawing.Point(390, 265);
this.lblPhoneVal.Name = "lblPhoneVal";
this.lblPhoneVal.Size = new System.Drawing.Size(85, 19);
this.lblPhoneVal.TabIndex = 39;
this.lblPhoneVal.Text = "097-3344311";
//
// lblEmailVal
//
this.lblEmailVal.AutoSize = true;
this.lblEmailVal.BackColor = System.Drawing.Color.Transparent;
this.lblEmailVal.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.lblEmailVal.Font = new System.Drawing.Font("Century Gothic", 9.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.lblEmailVal.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.lblEmailVal.Location = new System.Drawing.Point(390, 300);
this.lblEmailVal.Name = "lblEmailVal";
this.lblEmailVal.Size = new System.Drawing.Size(131, 19);
this.lblEmailVal.TabIndex = 40;
this.lblEmailVal.Text = "johnsmith@aol.com";
//
// btnModify
//
this.btnModify.BackColor = System.Drawing.Color.Transparent;
this.btnModify.FlatStyle = System.Windows.Forms.FlatStyle.Popup;
this.btnModify.Font = new System.Drawing.Font("Verdana", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.btnModify.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.btnModify.Location = new System.Drawing.Point(210, 375);
this.btnModify.Name = "btnModify";
this.btnModify.Size = new System.Drawing.Size(80, 24);
this.btnModify.TabIndex = 41;
this.btnModify.Text = "&Modify";
this.btnModify.Click += new System.EventHandler(this.btnModify_Click);
//
// frmUserDetails
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 13);
this.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("$this.BackgroundImage")));
this.ClientSize = new System.Drawing.Size(653, 483);
this.ControlBox = false;
this.Controls.Add(this.btnModify);
this.Controls.Add(this.lblEmailVal);
this.Controls.Add(this.lblPhoneVal);
this.Controls.Add(this.lblGenderVal);
this.Controls.Add(this.lblStatus);
this.Controls.Add(this.lblEmail);
this.Controls.Add(this.lblUserName);
this.Controls.Add(this.lblStatusVal);
this.Controls.Add(this.lblLastNameVal);
this.Controls.Add(this.lblFirstNameVal);
this.Controls.Add(this.lblUsrNameVal);
this.Controls.Add(this.lblPhone);
this.Controls.Add(this.lblGender);
this.Controls.Add(this.lblLastName);
this.Controls.Add(this.lblUserDetails);
this.Controls.Add(this.lblFirstName);
this.Controls.Add(this.btnClose);
this.Controls.Add(this.btnPrint);
this.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0)));
this.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None;
this.Location = new System.Drawing.Point(146, 115);
this.Name = "frmUserDetails";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.Manual;
this.Text = "frmResult";
this.TopMost = true;
this.ResumeLayout(false);
}
#endregion
private void btnClose_Click(object sender, System.EventArgs e)
{
this.Close();
}
private void btnModify_Click(object sender, System.EventArgs e)
{
frmUser u=new frmUser(2,this);
u.cboUsername.Visible=true;
u.cboUsername.Enabled =false;
u.cboUserType.Enabled=false;
u.Show();
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -