⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 form_dkcj.cs

📁 一个很简单的考试系统。实用性很强啊!数据库在里面
💻 CS
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace bizdb
{
	/// <summary>
	/// Form1 的摘要说明。
	/// </summary>
	public class Form_dkcj : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label lbl_kskcmc;
		private System.Windows.Forms.Label lbl_yf;
		private System.Windows.Forms.Label lbl_xskssj;
		private System.Windows.Forms.ComboBox cbb_kskcmc;
		private System.Windows.Forms.ComboBox cbb_ksnf;
		private System.Windows.Forms.ComboBox cbb_yf;
		private System.Windows.Forms.ListBox ltb_xskssj;
		private System.Windows.Forms.Button btn_yl;
		private System.Windows.Forms.Button btn_dy;
		private System.Windows.Forms.Label lbl_ksnf;
		private System.Windows.Forms.DataGrid dgd_dkcj;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public Form_dkcj()
		{
			//
			// Windows 窗体设计器支持所必需的
			//
			InitializeComponent();

			//
			// TODO: 在 InitializeComponent 调用后添加任何构造函数代码
			//
		}

		/// <summary>
		/// 清理所有正在使用的资源。
		/// </summary>
		protected override void Dispose( bool disposing )
		{
			if( disposing )
			{
				if (components != null) 
				{
					components.Dispose();
				}
			}
			base.Dispose( disposing );
		}

		#region Windows Form Designer generated code
		/// <summary>
		/// 设计器支持所需的方法 - 不要使用代码编辑器修改
		/// 此方法的内容。
		/// </summary>
		private void InitializeComponent()
		{
			this.lbl_kskcmc = new System.Windows.Forms.Label();
			this.lbl_ksnf = new System.Windows.Forms.Label();
			this.lbl_yf = new System.Windows.Forms.Label();
			this.lbl_xskssj = new System.Windows.Forms.Label();
			this.cbb_kskcmc = new System.Windows.Forms.ComboBox();
			this.cbb_ksnf = new System.Windows.Forms.ComboBox();
			this.cbb_yf = new System.Windows.Forms.ComboBox();
			this.ltb_xskssj = new System.Windows.Forms.ListBox();
			this.dgd_dkcj = new System.Windows.Forms.DataGrid();
			this.btn_yl = new System.Windows.Forms.Button();
			this.btn_dy = new System.Windows.Forms.Button();
			((System.ComponentModel.ISupportInitialize)(this.dgd_dkcj)).BeginInit();
			this.SuspendLayout();
			// 
			// lbl_kskcmc
			// 
			this.lbl_kskcmc.Location = new System.Drawing.Point(72, 56);
			this.lbl_kskcmc.Name = "lbl_kskcmc";
			this.lbl_kskcmc.Size = new System.Drawing.Size(168, 24);
			this.lbl_kskcmc.TabIndex = 0;
			this.lbl_kskcmc.Text = "请输入考试课程名称";
			// 
			// lbl_ksnf
			// 
			this.lbl_ksnf.Location = new System.Drawing.Point(72, 112);
			this.lbl_ksnf.Name = "lbl_ksnf";
			this.lbl_ksnf.Size = new System.Drawing.Size(176, 24);
			this.lbl_ksnf.TabIndex = 1;
			this.lbl_ksnf.Text = "请输入考试年份";
			// 
			// lbl_yf
			// 
			this.lbl_yf.Location = new System.Drawing.Point(392, 112);
			this.lbl_yf.Name = "lbl_yf";
			this.lbl_yf.Size = new System.Drawing.Size(96, 24);
			this.lbl_yf.TabIndex = 2;
			this.lbl_yf.Text = "     月份";
			// 
			// lbl_xskssj
			// 
			this.lbl_xskssj.Location = new System.Drawing.Point(72, 168);
			this.lbl_xskssj.Name = "lbl_xskssj";
			this.lbl_xskssj.Size = new System.Drawing.Size(152, 32);
			this.lbl_xskssj.TabIndex = 3;
			this.lbl_xskssj.Text = "显示考试时间";
			// 
			// cbb_kskcmc
			// 
			this.cbb_kskcmc.Location = new System.Drawing.Point(248, 56);
			this.cbb_kskcmc.Name = "cbb_kskcmc";
			this.cbb_kskcmc.Size = new System.Drawing.Size(400, 20);
			this.cbb_kskcmc.TabIndex = 4;
			// 
			// cbb_ksnf
			// 
			this.cbb_ksnf.Location = new System.Drawing.Point(248, 112);
			this.cbb_ksnf.Name = "cbb_ksnf";
			this.cbb_ksnf.Size = new System.Drawing.Size(128, 20);
			this.cbb_ksnf.TabIndex = 5;
			// 
			// cbb_yf
			// 
			this.cbb_yf.Location = new System.Drawing.Point(520, 112);
			this.cbb_yf.Name = "cbb_yf";
			this.cbb_yf.Size = new System.Drawing.Size(128, 20);
			this.cbb_yf.TabIndex = 6;
			// 
			// ltb_xskssj
			// 
			this.ltb_xskssj.ItemHeight = 12;
			this.ltb_xskssj.Location = new System.Drawing.Point(248, 160);
			this.ltb_xskssj.Name = "ltb_xskssj";
			this.ltb_xskssj.Size = new System.Drawing.Size(392, 40);
			this.ltb_xskssj.TabIndex = 7;
			// 
			// dgd_dkcj
			// 
			this.dgd_dkcj.DataMember = "";
			this.dgd_dkcj.HeaderForeColor = System.Drawing.SystemColors.ControlText;
			this.dgd_dkcj.Location = new System.Drawing.Point(64, 216);
			this.dgd_dkcj.Name = "dgd_dkcj";
			this.dgd_dkcj.Size = new System.Drawing.Size(584, 280);
			this.dgd_dkcj.TabIndex = 8;
			// 
			// btn_yl
			// 
			this.btn_yl.Location = new System.Drawing.Point(680, 416);
			this.btn_yl.Name = "btn_yl";
			this.btn_yl.Size = new System.Drawing.Size(96, 40);
			this.btn_yl.TabIndex = 9;
			this.btn_yl.Text = "阅览";
			// 
			// btn_dy
			// 
			this.btn_dy.Location = new System.Drawing.Point(680, 488);
			this.btn_dy.Name = "btn_dy";
			this.btn_dy.Size = new System.Drawing.Size(96, 40);
			this.btn_dy.TabIndex = 10;
			this.btn_dy.Text = "打印";
			// 
			// Form_dkcj
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.ClientSize = new System.Drawing.Size(792, 573);
			this.Controls.AddRange(new System.Windows.Forms.Control[] {
																		  this.btn_dy,
																		  this.btn_yl,
																		  this.dgd_dkcj,
																		  this.ltb_xskssj,
																		  this.cbb_yf,
																		  this.cbb_ksnf,
																		  this.cbb_kskcmc,
																		  this.lbl_xskssj,
																		  this.lbl_yf,
																		  this.lbl_ksnf,
																		  this.lbl_kskcmc});
			this.Name = "Form_dkcj";
			this.Text = "单科成绩统计";
			this.Load += new System.EventHandler(this.Form_dkcj_Load);
			((System.ComponentModel.ISupportInitialize)(this.dgd_dkcj)).EndInit();
			this.ResumeLayout(false);

		}
		#endregion

		private void Form_dkcj_Load(object sender, System.EventArgs e)
		{
			this.WindowState = System.Windows.Forms.FormWindowState.Maximized;
			this.ControlBox = false;
		}

		/// <summary>
		/// 应用程序的主入口点。
		/// </summary>
		//[STAThread]
		//static void Main() 
		//{
		//	Application.Run(new Form_dkcj());
		//}

		
	}
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -