📄 xuesheng.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>
/// xuesheng 的摘要说明。
/// </summary>
public class xuesheng : System.Windows.Forms.Form
{
private System.Windows.Forms.Label label2;
private System.Windows.Forms.TextBox txtD;
private System.Windows.Forms.TextBox txtB;
private System.Windows.Forms.TextBox txtA;
private System.Windows.Forms.TextBox txtC;
private System.Windows.Forms.TextBox txtda;
private System.Windows.Forms.Label label6;
private System.Windows.Forms.GroupBox groupBox1;
private System.Windows.Forms.Label label5;
private System.Windows.Forms.Label label4;
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.TextBox txttihao;
private System.Windows.Forms.TextBox txttimu;
private System.Windows.Forms.Label label1;
private OleDbConnection conn = null;
private OleDbCommand comm=null;
private static int chengji;
private System.Windows.Forms.Button butnext;
private System.Windows.Forms.Button butup;
private System.Windows.Forms.Button butexit;
private System.Windows.Forms.Button buttimu;
/// <summary>
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public xuesheng()
{
//
// 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.label2 = new System.Windows.Forms.Label();
this.butnext = new System.Windows.Forms.Button();
this.butup = new System.Windows.Forms.Button();
this.txtD = new System.Windows.Forms.TextBox();
this.txtB = new System.Windows.Forms.TextBox();
this.txtA = new System.Windows.Forms.TextBox();
this.txtC = new System.Windows.Forms.TextBox();
this.txtda = new System.Windows.Forms.TextBox();
this.label6 = new System.Windows.Forms.Label();
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.label5 = new System.Windows.Forms.Label();
this.label4 = 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.txttihao = new System.Windows.Forms.TextBox();
this.txttimu = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.butexit = new System.Windows.Forms.Button();
this.buttimu = new System.Windows.Forms.Button();
this.groupBox1.SuspendLayout();
this.SuspendLayout();
//
// label2
//
this.label2.Location = new System.Drawing.Point(24, 153);
this.label2.Name = "label2";
this.label2.Size = new System.Drawing.Size(24, 32);
this.label2.TabIndex = 69;
this.label2.Text = "A";
this.label2.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// butnext
//
this.butnext.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.butnext.Location = new System.Drawing.Point(192, 320);
this.butnext.Name = "butnext";
this.butnext.Size = new System.Drawing.Size(72, 25);
this.butnext.TabIndex = 64;
this.butnext.Text = "下一题";
this.butnext.Click += new System.EventHandler(this.butnext_Click);
//
// butup
//
this.butup.Font = new System.Drawing.Font("宋体", 10.5F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
this.butup.Location = new System.Drawing.Point(104, 320);
this.butup.Name = "butup";
this.butup.Size = new System.Drawing.Size(72, 25);
this.butup.TabIndex = 63;
this.butup.Text = "上一题";
this.butup.Click += new System.EventHandler(this.butup_Click);
//
// txtD
//
this.txtD.Location = new System.Drawing.Point(56, 251);
this.txtD.Name = "txtD";
this.txtD.ReadOnly = true;
this.txtD.Size = new System.Drawing.Size(440, 21);
this.txtD.TabIndex = 60;
this.txtD.Text = "";
//
// txtB
//
this.txtB.Location = new System.Drawing.Point(56, 187);
this.txtB.Name = "txtB";
this.txtB.ReadOnly = true;
this.txtB.Size = new System.Drawing.Size(436, 21);
this.txtB.TabIndex = 58;
this.txtB.Text = "";
//
// txtA
//
this.txtA.Location = new System.Drawing.Point(56, 155);
this.txtA.Name = "txtA";
this.txtA.ReadOnly = true;
this.txtA.Size = new System.Drawing.Size(436, 21);
this.txtA.TabIndex = 57;
this.txtA.Text = "";
//
// txtC
//
this.txtC.Location = new System.Drawing.Point(56, 219);
this.txtC.Name = "txtC";
this.txtC.ReadOnly = true;
this.txtC.Size = new System.Drawing.Size(436, 21);
this.txtC.TabIndex = 59;
this.txtC.Text = "";
//
// txtda
//
this.txtda.Location = new System.Drawing.Point(440, 291);
this.txtda.Name = "txtda";
this.txtda.Size = new System.Drawing.Size(56, 21);
this.txtda.TabIndex = 71;
this.txtda.Text = "";
this.txtda.TextChanged += new System.EventHandler(this.txtda_TextChanged);
//
// label6
//
this.label6.Location = new System.Drawing.Point(352, 291);
this.label6.Name = "label6";
this.label6.Size = new System.Drawing.Size(88, 16);
this.label6.TabIndex = 70;
this.label6.Text = "您的答案是:";
//
// groupBox1
//
this.groupBox1.Controls.Add(this.label5);
this.groupBox1.Controls.Add(this.label4);
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(8, 147);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(500, 136);
this.groupBox1.TabIndex = 61;
this.groupBox1.TabStop = false;
//
// label5
//
this.label5.Location = new System.Drawing.Point(16, 96);
this.label5.Name = "label5";
this.label5.Size = new System.Drawing.Size(24, 24);
this.label5.TabIndex = 35;
this.label5.Text = "D";
this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label4
//
this.label4.Location = new System.Drawing.Point(16, 72);
this.label4.Name = "label4";
this.label4.Size = new System.Drawing.Size(24, 23);
this.label4.TabIndex = 34;
this.label4.Text = "C";
this.label4.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.Location = new System.Drawing.Point(16, 64);
this.label9.Name = "label9";
this.label9.Size = new System.Drawing.Size(24, 32);
this.label9.TabIndex = 34;
this.label9.Text = "C";
this.label9.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label10
//
this.label10.Location = new System.Drawing.Point(16, 40);
this.label10.Name = "label10";
this.label10.Size = new System.Drawing.Size(24, 23);
this.label10.TabIndex = 33;
this.label10.Text = "B";
this.label10.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label11
//
this.label11.Location = new System.Drawing.Point(16, 88);
this.label11.Name = "label11";
this.label11.Size = new System.Drawing.Size(24, 23);
this.label11.TabIndex = 35;
this.label11.Text = "D";
this.label11.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
//
// label12
//
this.label12.Location = new System.Drawing.Point(16, 64);
this.label12.Name = "label12";
this.label12.Size = new System.Drawing.Size(24, 8);
this.label12.TabIndex = 34;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -