📄 userg1.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.OleDb;
namespace WindowsApplication1
{
/// <summary>
/// userg1 的摘要说明。
/// </summary>
public class userg1 : System.Windows.Forms.Form
{
private System.Windows.Forms.TabControl tabControl1;
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.TabPage tabPage2;
private System.Windows.Forms.Panel panel1;
private System.Windows.Forms.Label label2;
private System.Windows.Forms.Label label3;
private System.Windows.Forms.TextBox textBox2;
private System.Windows.Forms.TextBox textBox3;
private System.Windows.Forms.DataGrid dataGrid1;
private System.Windows.Forms.Button button11;
private System.Windows.Forms.Button button12;
private System.Windows.Forms.Button button13;
private System.Windows.Forms.Button button14;
private System.Windows.Forms.Button button15;
private System.Windows.Forms.Button button16;
private System.Windows.Forms.Button button17;
private System.Windows.Forms.Button button18;
private System.Windows.Forms.Button button19;
private System.Windows.Forms.Button button1;
private System.Windows.Forms.Button button5;
private System.Windows.Forms.Button button6;
private System.Windows.Forms.Button button7;
private System.Windows.Forms.Button button8;
//private System.Data.OleDb.OleDbDataAdapter oleDbDataAdapter1;
//private System.Data.DataSet dataSet1;
private BindingManagerBase MyBind;
private System.Windows.Forms.Label label1;
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
public userg1()
{
//
// 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(userg1));
this.tabControl1 = new System.Windows.Forms.TabControl();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.dataGrid1 = new System.Windows.Forms.DataGrid();
this.panel1 = new System.Windows.Forms.Panel();
this.button1 = new System.Windows.Forms.Button();
this.button5 = new System.Windows.Forms.Button();
this.button6 = new System.Windows.Forms.Button();
this.button7 = new System.Windows.Forms.Button();
this.button8 = new System.Windows.Forms.Button();
this.tabPage2 = new System.Windows.Forms.TabPage();
this.button11 = new System.Windows.Forms.Button();
this.button12 = new System.Windows.Forms.Button();
this.button13 = new System.Windows.Forms.Button();
this.button14 = new System.Windows.Forms.Button();
this.button15 = new System.Windows.Forms.Button();
this.button16 = new System.Windows.Forms.Button();
this.button17 = new System.Windows.Forms.Button();
this.button18 = new System.Windows.Forms.Button();
this.button19 = new System.Windows.Forms.Button();
this.textBox3 = new System.Windows.Forms.TextBox();
this.textBox2 = new System.Windows.Forms.TextBox();
this.label3 = new System.Windows.Forms.Label();
this.label2 = new System.Windows.Forms.Label();
this.label1 = new System.Windows.Forms.Label();
this.tabControl1.SuspendLayout();
this.tabPage1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
this.panel1.SuspendLayout();
this.tabPage2.SuspendLayout();
this.SuspendLayout();
//
// tabControl1
//
this.tabControl1.Controls.Add(this.tabPage1);
this.tabControl1.Controls.Add(this.tabPage2);
this.tabControl1.Location = new System.Drawing.Point(0, 0);
this.tabControl1.Name = "tabControl1";
this.tabControl1.SelectedIndex = 0;
this.tabControl1.Size = new System.Drawing.Size(520, 376);
this.tabControl1.TabIndex = 0;
this.tabControl1.SelectedIndexChanged += new System.EventHandler(this.tabControl1_SelectedIndexChanged);
//
// tabPage1
//
this.tabPage1.Controls.Add(this.dataGrid1);
this.tabPage1.Controls.Add(this.panel1);
this.tabPage1.Location = new System.Drawing.Point(4, 21);
this.tabPage1.Name = "tabPage1";
this.tabPage1.Size = new System.Drawing.Size(512, 351);
this.tabPage1.TabIndex = 0;
this.tabPage1.Text = "多行显示";
//
// dataGrid1
//
this.dataGrid1.DataMember = "";
this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
this.dataGrid1.Location = new System.Drawing.Point(8, 0);
this.dataGrid1.Name = "dataGrid1";
this.dataGrid1.Size = new System.Drawing.Size(464, 208);
this.dataGrid1.TabIndex = 1;
//
// panel1
//
this.panel1.BorderStyle = System.Windows.Forms.BorderStyle.Fixed3D;
this.panel1.Controls.Add(this.button1);
this.panel1.Controls.Add(this.button5);
this.panel1.Controls.Add(this.button6);
this.panel1.Controls.Add(this.button7);
this.panel1.Controls.Add(this.button8);
this.panel1.Location = new System.Drawing.Point(0, 208);
this.panel1.Name = "panel1";
this.panel1.Size = new System.Drawing.Size(472, 72);
this.panel1.TabIndex = 0;
this.panel1.Paint += new System.Windows.Forms.PaintEventHandler(this.panel1_Paint);
//
// button1
//
this.button1.BackColor = System.Drawing.Color.Transparent;
this.button1.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button1.BackgroundImage")));
this.button1.Location = new System.Drawing.Point(360, 8);
this.button1.Name = "button1";
this.button1.TabIndex = 30;
this.button1.Text = "关闭程序";
this.button1.Click += new System.EventHandler(this.button1_Click);
//
// button5
//
this.button5.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button5.BackgroundImage")));
this.button5.Location = new System.Drawing.Point(280, 8);
this.button5.Name = "button5";
this.button5.TabIndex = 26;
this.button5.Text = "末一条记录";
this.button5.Click += new System.EventHandler(this.button5_Click);
//
// button6
//
this.button6.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button6.BackgroundImage")));
this.button6.Location = new System.Drawing.Point(192, 8);
this.button6.Name = "button6";
this.button6.TabIndex = 25;
this.button6.Text = "后一条记录";
this.button6.Click += new System.EventHandler(this.button6_Click);
//
// button7
//
this.button7.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button7.BackgroundImage")));
this.button7.Location = new System.Drawing.Point(104, 8);
this.button7.Name = "button7";
this.button7.TabIndex = 23;
this.button7.Text = "前一条记录";
this.button7.Click += new System.EventHandler(this.button7_Click);
//
// button8
//
this.button8.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("button8.BackgroundImage")));
this.button8.Location = new System.Drawing.Point(16, 8);
this.button8.Name = "button8";
this.button8.TabIndex = 22;
this.button8.Text = "第一条记录";
this.button8.Click += new System.EventHandler(this.button8_Click);
//
// tabPage2
//
this.tabPage2.BackgroundImage = ((System.Drawing.Image)(resources.GetObject("tabPage2.BackgroundImage")));
this.tabPage2.Controls.Add(this.button11);
this.tabPage2.Controls.Add(this.button12);
this.tabPage2.Controls.Add(this.button13);
this.tabPage2.Controls.Add(this.button14);
this.tabPage2.Controls.Add(this.button15);
this.tabPage2.Controls.Add(this.button16);
this.tabPage2.Controls.Add(this.button17);
this.tabPage2.Controls.Add(this.button18);
this.tabPage2.Controls.Add(this.button19);
this.tabPage2.Controls.Add(this.textBox3);
this.tabPage2.Controls.Add(this.textBox2);
this.tabPage2.Controls.Add(this.label3);
this.tabPage2.Controls.Add(this.label2);
this.tabPage2.Location = new System.Drawing.Point(4, 21);
this.tabPage2.Name = "tabPage2";
this.tabPage2.Size = new System.Drawing.Size(512, 351);
this.tabPage2.TabIndex = 1;
this.tabPage2.Text = "单框显示";
this.tabPage2.Click += new System.EventHandler(this.tabPage2_Click);
//
// button11
//
this.button11.BackColor = System.Drawing.Color.Transparent;
this.button11.Location = new System.Drawing.Point(344, 208);
this.button11.Name = "button11";
this.button11.TabIndex = 21;
this.button11.Text = "关闭程序";
this.button11.Click += new System.EventHandler(this.button11_Click);
//
// button12
//
this.button12.BackColor = System.Drawing.Color.Transparent;
this.button12.Location = new System.Drawing.Point(168, 208);
this.button12.Name = "button12";
this.button12.TabIndex = 20;
this.button12.Text = "修改记录";
this.button12.Click += new System.EventHandler(this.button12_Click);
//
// button13
//
this.button13.BackColor = System.Drawing.Color.Transparent;
this.button13.Location = new System.Drawing.Point(344, 168);
this.button13.Name = "button13";
this.button13.TabIndex = 19;
this.button13.Text = "增加记录";
this.button13.Click += new System.EventHandler(this.button13_Click);
//
// button14
//
this.button14.BackColor = System.Drawing.Color.Transparent;
this.button14.Location = new System.Drawing.Point(256, 168);
this.button14.Name = "button14";
this.button14.TabIndex = 18;
this.button14.Text = "新建记录";
this.button14.Click += new System.EventHandler(this.button14_Click);
//
// button15
//
this.button15.BackColor = System.Drawing.Color.Transparent;
this.button15.Location = new System.Drawing.Point(168, 168);
this.button15.Name = "button15";
this.button15.TabIndex = 17;
this.button15.Text = "末一条记录";
this.button15.Click += new System.EventHandler(this.button15_Click);
//
// button16
//
this.button16.BackColor = System.Drawing.Color.Transparent;
this.button16.Location = new System.Drawing.Point(344, 128);
this.button16.Name = "button16";
this.button16.TabIndex = 16;
this.button16.Text = "后一条记录";
this.button16.Click += new System.EventHandler(this.button16_Click);
//
// button17
//
this.button17.BackColor = System.Drawing.Color.Transparent;
this.button17.Location = new System.Drawing.Point(256, 128);
this.button17.Name = "button17";
this.button17.TabIndex = 14;
this.button17.Text = "前一条记录";
this.button17.Click += new System.EventHandler(this.button17_Click);
//
// button18
//
this.button18.BackColor = System.Drawing.Color.Transparent;
this.button18.Location = new System.Drawing.Point(168, 128);
this.button18.Name = "button18";
this.button18.TabIndex = 13;
this.button18.Text = "第一条记录";
this.button18.Click += new System.EventHandler(this.button18_Click);
//
// button19
//
this.button19.BackColor = System.Drawing.Color.Transparent;
this.button19.Location = new System.Drawing.Point(256, 208);
this.button19.Name = "button19";
this.button19.TabIndex = 15;
this.button19.Text = "删除记录";
this.button19.Click += new System.EventHandler(this.button19_Click);
//
// textBox3
//
this.textBox3.Location = new System.Drawing.Point(96, 80);
this.textBox3.Name = "textBox3";
this.textBox3.Size = new System.Drawing.Size(120, 21);
this.textBox3.TabIndex = 6;
this.textBox3.Text = "";
//
// textBox2
//
this.textBox2.Location = new System.Drawing.Point(96, 24);
this.textBox2.Name = "textBox2";
this.textBox2.Size = new System.Drawing.Size(120, 21);
this.textBox2.TabIndex = 5;
this.textBox2.Text = "";
//
// label3
//
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -