📄 frmstudentinfoselect.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace Forms
{
/// <summary>
/// frmStudentInfoSelect 的摘要说明。
/// </summary>
public class frmStudentInfoSelect : System.Windows.Forms.Form
{
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.DataGrid dataGrid1;
private System.Windows.Forms.Button btnSelect;
private System.Windows.Forms.TextBox txtCrID;
private System.Windows.Forms.TextBox txtStuName;
private System.Windows.Forms.TextBox txtStuID;
private System.Windows.Forms.CheckBox chkCrID;
private System.Windows.Forms.CheckBox chkStuName;
private System.Windows.Forms.CheckBox chkStuID;
private System.Windows.Forms.Button btnUpdate;
private System.Windows.Forms.Button btnDelete;
private System.Windows.Forms.Button btnExit;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public frmStudentInfoSelect()
{
//
// 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.groupBox1 = new System.Windows.Forms.GroupBox();
this.btnSelect = new System.Windows.Forms.Button();
this.txtCrID = new System.Windows.Forms.TextBox();
this.txtStuName = new System.Windows.Forms.TextBox();
this.txtStuID = new System.Windows.Forms.TextBox();
this.chkCrID = new System.Windows.Forms.CheckBox();
this.chkStuName = new System.Windows.Forms.CheckBox();
this.chkStuID = new System.Windows.Forms.CheckBox();
this.dataGrid1 = new System.Windows.Forms.DataGrid();
this.btnUpdate = new System.Windows.Forms.Button();
this.btnDelete = new System.Windows.Forms.Button();
this.btnExit = new System.Windows.Forms.Button();
this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
this.SuspendLayout();
//
// groupBox1
//
this.groupBox1.Controls.Add(this.btnSelect);
this.groupBox1.Controls.Add(this.txtCrID);
this.groupBox1.Controls.Add(this.txtStuName);
this.groupBox1.Controls.Add(this.txtStuID);
this.groupBox1.Controls.Add(this.chkCrID);
this.groupBox1.Controls.Add(this.chkStuName);
this.groupBox1.Controls.Add(this.chkStuID);
this.groupBox1.Location = new System.Drawing.Point(0, 0);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(704, 56);
this.groupBox1.TabIndex = 0;
this.groupBox1.TabStop = false;
this.groupBox1.Text = "查询条件";
//
// btnSelect
//
this.btnSelect.Location = new System.Drawing.Point(616, 24);
this.btnSelect.Name = "btnSelect";
this.btnSelect.TabIndex = 6;
this.btnSelect.Text = "查询(&S)";
//
// txtCrID
//
this.txtCrID.Location = new System.Drawing.Point(496, 24);
this.txtCrID.Name = "txtCrID";
this.txtCrID.TabIndex = 5;
this.txtCrID.Text = "";
//
// txtStuName
//
this.txtStuName.Location = new System.Drawing.Point(304, 24);
this.txtStuName.Name = "txtStuName";
this.txtStuName.TabIndex = 4;
this.txtStuName.Text = "";
//
// txtStuID
//
this.txtStuID.Location = new System.Drawing.Point(104, 24);
this.txtStuID.Name = "txtStuID";
this.txtStuID.TabIndex = 3;
this.txtStuID.Text = "";
//
// chkCrID
//
this.chkCrID.Location = new System.Drawing.Point(408, 24);
this.chkCrID.Name = "chkCrID";
this.chkCrID.TabIndex = 2;
this.chkCrID.Text = "所在班级编号";
//
// chkStuName
//
this.chkStuName.Location = new System.Drawing.Point(216, 24);
this.chkStuName.Name = "chkStuName";
this.chkStuName.Size = new System.Drawing.Size(80, 24);
this.chkStuName.TabIndex = 1;
this.chkStuName.Text = "学生姓名";
//
// chkStuID
//
this.chkStuID.Location = new System.Drawing.Point(16, 24);
this.chkStuID.Name = "chkStuID";
this.chkStuID.Size = new System.Drawing.Size(80, 24);
this.chkStuID.TabIndex = 0;
this.chkStuID.Text = "学生编号";
//
// dataGrid1
//
this.dataGrid1.DataMember = "";
this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
this.dataGrid1.Location = new System.Drawing.Point(0, 64);
this.dataGrid1.Name = "dataGrid1";
this.dataGrid1.Size = new System.Drawing.Size(704, 184);
this.dataGrid1.TabIndex = 1;
//
// btnUpdate
//
this.btnUpdate.Location = new System.Drawing.Point(248, 264);
this.btnUpdate.Name = "btnUpdate";
this.btnUpdate.Size = new System.Drawing.Size(112, 32);
this.btnUpdate.TabIndex = 2;
this.btnUpdate.Text = "更改记录(&U)";
//
// btnDelete
//
this.btnDelete.Location = new System.Drawing.Point(384, 264);
this.btnDelete.Name = "btnDelete";
this.btnDelete.Size = new System.Drawing.Size(112, 32);
this.btnDelete.TabIndex = 3;
this.btnDelete.Text = "删除记录(&D)";
//
// btnExit
//
this.btnExit.Location = new System.Drawing.Point(520, 264);
this.btnExit.Name = "btnExit";
this.btnExit.Size = new System.Drawing.Size(112, 32);
this.btnExit.TabIndex = 4;
this.btnExit.Text = "退出(&E)";
//
// frmStudentInfoSelect
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(704, 309);
this.Controls.Add(this.btnExit);
this.Controls.Add(this.btnDelete);
this.Controls.Add(this.btnUpdate);
this.Controls.Add(this.dataGrid1);
this.Controls.Add(this.groupBox1);
this.Name = "frmStudentInfoSelect";
this.Text = "i学生信息查询";
this.Load += new System.EventHandler(this.frmStudentInfoSelect_Load);
this.groupBox1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private void frmStudentInfoSelect_Load(object sender, System.EventArgs e)
{
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -