📄 guanliyuan.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.OleDb;
namespace timuku
{
/// <summary>
/// guanliyuan 的摘要说明。
/// </summary>
public class guanliyuan : System.Windows.Forms.Form
{
private System.Windows.Forms.TextBox txtda;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.Label label7;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox txttihao;
private System.Windows.Forms.Label label1;
private System.Windows.Forms.Button butexit;
private System.Windows.Forms.Button butend;
private System.Windows.Forms.Button butnext;
private System.Windows.Forms.Button butup;
private System.Windows.Forms.Button butfirst;
private System.Windows.Forms.TextBox txtD;
private System.Windows.Forms.TextBox txtC;
private System.Windows.Forms.TextBox txtB;
private System.Windows.Forms.TextBox txtA;
private System.Windows.Forms.TextBox txttimu;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.Label label8;
private System.Windows.Forms.Label label9;
private System.Windows.Forms.Label label10;
private System.Windows.Forms.Label label11;
private System.Windows.Forms.Label label12;
private System.Windows.Forms.Button butoutput;
private System.Windows.Forms.Button butdelete;
private System.Windows.Forms.Button butinsert;
private System.Windows.Forms.Button butuptade;
private OleDbConnection conn = null;
private OleDbCommand comm=null;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public guanliyuan()
{
//
// 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()
{
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(guanliyuan));
this.txtda = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.label7 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.txttihao = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.butexit = new System.Windows.Forms.Button();
this.butend = new System.Windows.Forms.Button();
this.butnext = new System.Windows.Forms.Button();
this.butup = new System.Windows.Forms.Button();
this.butfirst = new System.Windows.Forms.Button();
this.txtD = new System.Windows.Forms.TextBox();
this.txtC = new System.Windows.Forms.TextBox();
this.txtB = new System.Windows.Forms.TextBox();
this.txtA = new System.Windows.Forms.TextBox();
this.txttimu = new System.Windows.Forms.TextBox();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.label5 = new System.Windows.Forms.Label();
this.label3 = new System.Windows.Forms.Label();
this.label8 = new System.Windows.Forms.Label();
this.label9 = new System.Windows.Forms.Label();
this.label10 = new System.Windows.Forms.Label();
this.label11 = new System.Windows.Forms.Label();
this.label12 = new System.Windows.Forms.Label();
this.butoutput = new System.Windows.Forms.Button();
this.butdelete = new System.Windows.Forms.Button();
this.butinsert = new System.Windows.Forms.Button();
this.butuptade = new System.Windows.Forms.Button();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// txtda
//
this.txtda.BackColor = System.Drawing.Color.RosyBrown;
this.txtda.Location = new System.Drawing.Point(400, 299);
this.txtda.Name = "txtda";
this.txtda.Size = new System.Drawing.Size(56, 21);
this.txtda.TabIndex = 55;
this.txtda.Text = "";
this.txtda.TextAlign = System.Windows.Forms.HorizontalAlignment.Center;
//
// label6
//
this.label6.BackColor = System.Drawing.Color.Transparent;
this.label6.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.label6.ForeColor = System.Drawing.Color.Yellow;
this.label6.Location = new System.Drawing.Point(320, 299);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(88, 16);
this.label6.TabIndex = 54;
this.label6.Text = "您的答案是:";
//
// label7
//
this.label7.BackColor = System.Drawing.Color.Transparent;
this.label7.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.label7.ForeColor = System.Drawing.Color.Yellow;
this.label7.Location = new System.Drawing.Point(24, 56);
this.label7.Name = "label7";
this.label7.Size = new System.Drawing.Size(72, 16);
this.label7.TabIndex = 56;
this.label7.Text = "输入题号:";
//
// label2
//
this.label2.BackColor = System.Drawing.Color.Transparent;
this.label2.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.label2.ForeColor = System.Drawing.Color.Yellow;
this.label2.Location = new System.Drawing.Point(32, 163);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(24, 32);
this.label2.TabIndex = 53;
this.label2.Text = "A";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// txttihao
//
this.txttihao.BackColor = System.Drawing.Color.RosyBrown;
this.txttihao.Location = new System.Drawing.Point(96, 51);
this.txttihao.Name = "txttihao";
this.txttihao.Size = new System.Drawing.Size(56, 21);
this.txttihao.TabIndex = 52;
this.txttihao.Text = "1";
//
// label1
//
this.label1.BackColor = System.Drawing.Color.Transparent;
this.label1.Font = new System.Drawing.Font("楷体_GB2312", 15.75F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.label1.ForeColor = System.Drawing.Color.Yellow;
this.label1.Location = new System.Drawing.Point(16, 8);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(536, 40);
this.label1.TabIndex = 51;
this.label1.Text = "安徽机电职业技术学院计算机一级模拟试题试题库";
this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// butexit
//
this.butexit.BackColor = System.Drawing.Color.Transparent;
this.butexit.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.butexit.ForeColor = System.Drawing.Color.Yellow;
this.butexit.Location = new System.Drawing.Point(392, 331);
this.butexit.Name = "butexit";
this.butexit.Size = new System.Drawing.Size(72, 25);
this.butexit.TabIndex = 50;
this.butexit.Text = "退 出";
this.butexit.Click += new System.EventHandler(this.butexit_Click);
//
// butend
//
this.butend.BackColor = System.Drawing.Color.Transparent;
this.butend.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.butend.ForeColor = System.Drawing.Color.Yellow;
this.butend.Location = new System.Drawing.Point(296, 331);
this.butend.Name = "butend";
this.butend.Size = new System.Drawing.Size(72, 25);
this.butend.TabIndex = 49;
this.butend.Text = "最后一题";
this.butend.Click += new System.EventHandler(this.butend_Click);
//
// butnext
//
this.butnext.BackColor = System.Drawing.Color.Transparent;
this.butnext.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.butnext.ForeColor = System.Drawing.Color.Yellow;
this.butnext.Location = new System.Drawing.Point(208, 331);
this.butnext.Name = "butnext";
this.butnext.Size = new System.Drawing.Size(72, 25);
this.butnext.TabIndex = 48;
this.butnext.Text = "下一题";
this.butnext.Click += new System.EventHandler(this.butnext_Click);
//
// butup
//
this.butup.BackColor = System.Drawing.Color.Transparent;
this.butup.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.butup.ForeColor = System.Drawing.Color.Yellow;
this.butup.Location = new System.Drawing.Point(112, 331);
this.butup.Name = "butup";
this.butup.Size = new System.Drawing.Size(72, 25);
this.butup.TabIndex = 47;
this.butup.Text = "上一题";
this.butup.Click += new System.EventHandler(this.butup_Click);
//
// butfirst
//
this.butfirst.BackColor = System.Drawing.Color.Transparent;
this.butfirst.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.butfirst.ForeColor = System.Drawing.Color.Yellow;
this.butfirst.Location = new System.Drawing.Point(24, 331);
this.butfirst.Name = "butfirst";
this.butfirst.Size = new System.Drawing.Size(72, 25);
this.butfirst.TabIndex = 46;
this.butfirst.Text = "第一题";
this.butfirst.Click += new System.EventHandler(this.butfirst_Click);
//
// txtD
//
this.txtD.BackColor = System.Drawing.Color.RosyBrown;
this.txtD.Location = new System.Drawing.Point(72, 259);
this.txtD.Name = "txtD";
this.txtD.Size = new System.Drawing.Size(384, 21);
this.txtD.TabIndex = 44;
this.txtD.Text = "";
//
// txtC
//
this.txtC.BackColor = System.Drawing.Color.RosyBrown;
this.txtC.Location = new System.Drawing.Point(72, 227);
this.txtC.Name = "txtC";
this.txtC.Size = new System.Drawing.Size(384, 21);
this.txtC.TabIndex = 43;
this.txtC.Text = "";
//
// txtB
//
this.txtB.BackColor = System.Drawing.Color.RosyBrown;
this.txtB.Location = new System.Drawing.Point(72, 195);
this.txtB.Name = "txtB";
this.txtB.Size = new System.Drawing.Size(384, 21);
this.txtB.TabIndex = 42;
this.txtB.Text = "";
//
// txtA
//
this.txtA.BackColor = System.Drawing.Color.RosyBrown;
this.txtA.Location = new System.Drawing.Point(72, 163);
this.txtA.Name = "txtA";
this.txtA.Size = new System.Drawing.Size(384, 21);
this.txtA.TabIndex = 41;
this.txtA.Text = "";
//
// txttimu
//
this.txttimu.BackColor = System.Drawing.Color.RosyBrown;
this.txttimu.Location = new System.Drawing.Point(16, 75);
this.txttimu.Multiline = true;
this.txttimu.Name = "txttimu";
this.txttimu.Size = new System.Drawing.Size(448, 80);
this.txttimu.TabIndex = 40;
this.txttimu.Text = "";
//
// groupBox1
//
this.groupBox1.BackColor = System.Drawing.Color.Transparent;
this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Controls.Add(this.label3);
this.groupBox1.Controls.Add(this.label8);
this.groupBox1.Controls.Add(this.label9);
this.groupBox1.Controls.Add(this.label10);
this.groupBox1.Controls.Add(this.label11);
this.groupBox1.Controls.Add(this.label12);
this.groupBox1.Location = new System.Drawing.Point(16, 155);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(448, 136);
this.groupBox1.TabIndex = 45;
this.groupBox1.TabStop = false;
//
// label5
//
this.label5.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.label5.ForeColor = System.Drawing.Color.Yellow;
this.label5.Location = new System.Drawing.Point(16, 88);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(24, 32);
this.label5.TabIndex = 35;
this.label5.Text = "D";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label3
//
this.label3.BackColor = System.Drawing.Color.Transparent;
this.label3.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.label3.ForeColor = System.Drawing.Color.Yellow;
this.label3.Location = new System.Drawing.Point(16, 40);
this.label3.Name = "label3";
this.label3.Size = new System.Drawing.Size(24, 24);
this.label3.TabIndex = 33;
this.label3.Text = "B";
this.label3.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label8
//
this.label8.Location = new System.Drawing.Point(16, 96);
this.label8.Name = "label8";
this.label8.Size = new System.Drawing.Size(24, 23);
this.label8.TabIndex = 35;
this.label8.Text = "D";
this.label8.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label9
//
this.label9.Font = new System.Drawing.Font("宋体", 9F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.label9.ForeColor = System.Drawing.Color.Yellow;
this.label9.Location = new System.Drawing.Point(16, 64);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(24, 23);
this.label9.TabIndex = 34;
this.label9.Text = "C";
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -