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

📄 form1.cs

📁 模糊查询 c#程序 具体自己看源代码
💻 CS
📖 第 1 页 / 共 2 页
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;

namespace Example128_模糊查询
{
	/// <summary>
	/// Form1 的摘要说明。
	/// </summary>
	public class Form1 : System.Windows.Forms.Form
	{
		private Example128_模糊查询.dsAuthors dsAuthors1;
		private System.Windows.Forms.Label label1;
		private System.Windows.Forms.Label label2;
		private System.Windows.Forms.Label label3;
		private System.Windows.Forms.Label label4;
		private System.Windows.Forms.Label label5;
		private System.Windows.Forms.TextBox txtID;
		private System.Windows.Forms.TextBox txtlname;
		private System.Windows.Forms.TextBox txtfname;
		private System.Windows.Forms.Button btnshow;
		private System.Windows.Forms.Button btnNext;
		private System.Windows.Forms.Button btnLast;
		private System.Windows.Forms.Button btnPre;
		private System.Windows.Forms.Button btnFirst;
		private System.Windows.Forms.TextBox textBox1;
		private System.Data.OleDb.OleDbDataAdapter oleDbDataAdapter1;
		private System.Data.OleDb.OleDbCommand oleDbSelectCommand1;
		private System.Data.OleDb.OleDbCommand oleDbInsertCommand1;
		private System.Data.OleDb.OleDbCommand oleDbUpdateCommand1;
		private System.Data.OleDb.OleDbCommand oleDbDeleteCommand1;
		private System.Data.OleDb.OleDbConnection oleDbConnection1;
		/// <summary>
		/// 必需的设计器变量。
		/// </summary>
		private System.ComponentModel.Container components = null;

		public Form1()
		{
			//
			// 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.label1 = new System.Windows.Forms.Label();
			this.label2 = new System.Windows.Forms.Label();
			this.label3 = new System.Windows.Forms.Label();
			this.label4 = new System.Windows.Forms.Label();
			this.label5 = new System.Windows.Forms.Label();
			this.txtID = new System.Windows.Forms.TextBox();
			this.txtlname = new System.Windows.Forms.TextBox();
			this.txtfname = new System.Windows.Forms.TextBox();
			this.btnshow = new System.Windows.Forms.Button();
			this.btnNext = new System.Windows.Forms.Button();
			this.btnLast = new System.Windows.Forms.Button();
			this.btnPre = new System.Windows.Forms.Button();
			this.btnFirst = new System.Windows.Forms.Button();
			this.textBox1 = new System.Windows.Forms.TextBox();
			this.oleDbDataAdapter1 = new System.Data.OleDb.OleDbDataAdapter();
			this.oleDbSelectCommand1 = new System.Data.OleDb.OleDbCommand();
			this.oleDbInsertCommand1 = new System.Data.OleDb.OleDbCommand();
			this.oleDbUpdateCommand1 = new System.Data.OleDb.OleDbCommand();
			this.oleDbDeleteCommand1 = new System.Data.OleDb.OleDbCommand();
			this.oleDbConnection1 = new System.Data.OleDb.OleDbConnection();
			this.dsAuthors1 = new Example128_模糊查询.dsAuthors();
			((System.ComponentModel.ISupportInitialize)(this.dsAuthors1)).BeginInit();
			this.SuspendLayout();
			// 
			// label1
			// 
			this.label1.Location = new System.Drawing.Point(40, 24);
			this.label1.Name = "label1";
			this.label1.Size = new System.Drawing.Size(48, 16);
			this.label1.TabIndex = 0;
			this.label1.Text = "城市:";
			// 
			// label2
			// 
			this.label2.Location = new System.Drawing.Point(32, 88);
			this.label2.Name = "label2";
			this.label2.Size = new System.Drawing.Size(56, 24);
			this.label2.TabIndex = 1;
			this.label2.Text = "作者ID:";
			// 
			// label3
			// 
			this.label3.Location = new System.Drawing.Point(40, 128);
			this.label3.Name = "label3";
			this.label3.Size = new System.Drawing.Size(48, 16);
			this.label3.TabIndex = 2;
			this.label3.Text = "姓:";
			// 
			// label4
			// 
			this.label4.Location = new System.Drawing.Point(40, 160);
			this.label4.Name = "label4";
			this.label4.Size = new System.Drawing.Size(40, 23);
			this.label4.TabIndex = 3;
			this.label4.Text = "名:";
			// 
			// label5
			// 
			this.label5.BackColor = System.Drawing.Color.SkyBlue;
			this.label5.Font = new System.Drawing.Font("宋体", 12F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((System.Byte)(134)));
			this.label5.ForeColor = System.Drawing.SystemColors.ActiveCaptionText;
			this.label5.Location = new System.Drawing.Point(80, 200);
			this.label5.Name = "label5";
			this.label5.TabIndex = 4;
			this.label5.Text = "无记录";
			this.label5.TextAlign = System.Drawing.ContentAlignment.MiddleCenter;
			// 
			// txtID
			// 
			this.txtID.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dsAuthors1, "authors.au_id"));
			this.txtID.Location = new System.Drawing.Point(112, 80);
			this.txtID.Name = "txtID";
			this.txtID.Size = new System.Drawing.Size(88, 21);
			this.txtID.TabIndex = 5;
			this.txtID.Text = "";
			// 
			// txtlname
			// 
			this.txtlname.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dsAuthors1, "authors.au_lname"));
			this.txtlname.Location = new System.Drawing.Point(112, 120);
			this.txtlname.Name = "txtlname";
			this.txtlname.Size = new System.Drawing.Size(88, 21);
			this.txtlname.TabIndex = 6;
			this.txtlname.Text = "";
			// 
			// txtfname
			// 
			this.txtfname.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.dsAuthors1, "authors.au_fname"));
			this.txtfname.Location = new System.Drawing.Point(112, 160);
			this.txtfname.Name = "txtfname";
			this.txtfname.Size = new System.Drawing.Size(88, 21);
			this.txtfname.TabIndex = 7;
			this.txtfname.Text = "";
			// 
			// btnshow
			// 
			this.btnshow.Location = new System.Drawing.Point(168, 48);
			this.btnshow.Name = "btnshow";
			this.btnshow.Size = new System.Drawing.Size(40, 24);
			this.btnshow.TabIndex = 9;
			this.btnshow.Text = "查询";
			this.btnshow.Click += new System.EventHandler(this.btnshow_Click);
			// 
			// btnNext
			// 
			this.btnNext.Location = new System.Drawing.Point(176, 200);
			this.btnNext.Name = "btnNext";
			this.btnNext.Size = new System.Drawing.Size(24, 23);
			this.btnNext.TabIndex = 10;
			this.btnNext.Text = ">";
			this.btnNext.Click += new System.EventHandler(this.btnNext_Click);
			// 
			// btnLast
			// 
			this.btnLast.Location = new System.Drawing.Point(200, 200);
			this.btnLast.Name = "btnLast";
			this.btnLast.Size = new System.Drawing.Size(32, 23);
			this.btnLast.TabIndex = 11;
			this.btnLast.Text = ">|";
			this.btnLast.Click += new System.EventHandler(this.btnLast_Click);

⌨️ 快捷键说明

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