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

📄 form1.cs

📁 学生信息管理系统
💻 CS
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;


namespace WindowsApplication1
{
	/// <summary>
	/// Form1 的摘要说明。
	/// </summary>
	public class xscjgl : System.Windows.Forms.Form
	{
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Button insert_button;
		private System.Windows.Forms.Button select_button;
		private System.Windows.Forms.Button update_button;
		private System.Windows.Forms.Button delete_button;
		private System.Windows.Forms.Button insert_button2;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public xscjgl()
		{
			//
			// 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.label1 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.insert_button = new System.Windows.Forms.Button();
			this.select_button = new System.Windows.Forms.Button();
			this.update_button = new System.Windows.Forms.Button();
			this.delete_button = new System.Windows.Forms.Button();
			this.insert_button2 = new System.Windows.Forms.Button();
			this.SuspendLayout();
			// 
			// label1
			// 
			this.label1.BackColor = System.Drawing.SystemColors.ControlLight;
			this.label1.Font = new System.Drawing.Font("楷体_GB2312", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label1.Location = new System.Drawing.Point(0, 0);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(496, 32);
			this.label1.TabIndex = 0;
			this.label1.Text = "学生信息管理";
			this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// label2
			// 
			this.label2.BackColor = System.Drawing.SystemColors.ControlLight;
			this.label2.Location = new System.Drawing.Point(0, 40);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(512, 96);
			this.label2.TabIndex = 1;
			// 
			// insert_button
			// 
			this.insert_button.Location = new System.Drawing.Point(24, 80);
			this.insert_button.Name = "insert_button";
			this.insert_button.Size = new System.Drawing.Size(64, 24);
			this.insert_button.TabIndex = 2;
			this.insert_button.Text = "插入记录";
			this.insert_button.Click += new System.EventHandler(this.insert_button_Click);
			// 
			// select_button
			// 
			this.select_button.Location = new System.Drawing.Point(104, 80);
			this.select_button.Name = "select_button";
			this.select_button.Size = new System.Drawing.Size(64, 24);
			this.select_button.TabIndex = 3;
			this.select_button.Text = "查询记录";
			this.select_button.Click += new System.EventHandler(this.select_button_Click);
			// 
			// update_button
			// 
			this.update_button.Location = new System.Drawing.Point(192, 80);
			this.update_button.Name = "update_button";
			this.update_button.Size = new System.Drawing.Size(64, 24);
			this.update_button.TabIndex = 4;
			this.update_button.Text = "修改记录";
			this.update_button.Click += new System.EventHandler(this.update_button_Click);
			// 
			// delete_button
			// 
			this.delete_button.Location = new System.Drawing.Point(280, 80);
			this.delete_button.Name = "delete_button";
			this.delete_button.Size = new System.Drawing.Size(64, 24);
			this.delete_button.TabIndex = 5;
			this.delete_button.Text = "删除记录";
			this.delete_button.Click += new System.EventHandler(this.delete_button_Click);
			// 
			// insert_button2
			// 
			this.insert_button2.Location = new System.Drawing.Point(368, 80);
			this.insert_button2.Name = "insert_button2";
			this.insert_button2.Size = new System.Drawing.Size(64, 24);
			this.insert_button2.TabIndex = 6;
			this.insert_button2.Text = "插入成绩";
			this.insert_button2.Click += new System.EventHandler(this.insert_button2_Click);
			// 
			// xscjgl
			// 
			this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
			this.BackColor = System.Drawing.SystemColors.ActiveCaptionText;
			this.ClientSize = new System.Drawing.Size(504, 141);
			this.Controls.Add(this.insert_button2);
			this.Controls.Add(this.delete_button);
			this.Controls.Add(this.update_button);
			this.Controls.Add(this.select_button);
			this.Controls.Add(this.insert_button);
			this.Controls.Add(this.label2);
			this.Controls.Add(this.label1);
			this.Name = "xscjgl";
			this.Text = "学生成绩管理系统";
			this.Load += new System.EventHandler(this.xscjgl_Load);
			this.ResumeLayout(false);

		}
		#endregion

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

		private void xscjgl_Load(object sender, System.EventArgs e)
		{
		
		}
		private void insert_button_Click(object sender, System.EventArgs e)
		{
//		   this.Visible=false;
		   Form2 insert=new Form2();
		   insert.Show(); 
		
		}

		private void delete_button_Click(object sender, System.EventArgs e)
		{
		    
//			this.Visible=false;
		    Form4 delete=new Form4();
	        delete.Show();
		}

		

		private void select_button_Click(object sender, System.EventArgs e)
		{
//			this.Visible=false;
			Form3 select=new Form3 ();
			select.Show(); 
		}

		private void update_button_Click(object sender, System.EventArgs e)
		{   
//			this.Visible=false;
		    Form5 update=new Form5();
			update.Show();
		}

		private void insert_button2_Click(object sender, System.EventArgs e)
		{
//			this.Visible=false;
			Form6 insert2=new Form6();
			insert2.Show(); 
		}

	
	}
}

⌨️ 快捷键说明

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