📄 pform.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace test007
{
/// <summary>
/// PForm 的摘要说明。
/// </summary>
public class PForm : System.Windows.Forms.Form
{
protected System.Windows.Forms.ToolBar toolBar1;
protected System.Windows.Forms.ToolBarButton toolBarButton1;
protected System.Windows.Forms.ToolBarButton toolBarButton2;
protected System.Windows.Forms.ToolBarButton toolBarButton3;
protected System.Windows.Forms.ToolBarButton toolBarButton4;
protected System.Windows.Forms.ToolBarButton toolBarButton5;
protected System.Windows.Forms.ToolBarButton toolBarButton6;
protected System.Windows.Forms.ToolBarButton toolBarButton7;
protected System.Windows.Forms.ToolBarButton toolBarButton8;
protected System.Windows.Forms.ToolBarButton toolBarButton9;
private System.Windows.Forms.ImageList imageList1;
protected System.Windows.Forms.GroupBox groupBox1;
protected System.Windows.Forms.Button button1;
protected System.Windows.Forms.DataGrid dataGrid1;
protected System.Windows.Forms.GroupBox groupBox2;
private System.ComponentModel.IContainer components;
public PForm()
{
//
// 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.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(PForm));
this.toolBar1 = new System.Windows.Forms.ToolBar();
this.toolBarButton1 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton2 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton3 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton4 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton5 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton6 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton7 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton8 = new System.Windows.Forms.ToolBarButton();
this.toolBarButton9 = new System.Windows.Forms.ToolBarButton();
this.imageList1 = new System.Windows.Forms.ImageList(this.components);
this.groupBox1 = new System.Windows.Forms.GroupBox();
this.button1 = new System.Windows.Forms.Button();
this.dataGrid1 = new System.Windows.Forms.DataGrid();
this.groupBox2 = new System.Windows.Forms.GroupBox();
this.groupBox1.SuspendLayout();
((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).BeginInit();
this.SuspendLayout();
//
// toolBar1
//
this.toolBar1.Buttons.AddRange(new System.Windows.Forms.ToolBarButton[] {
this.toolBarButton1,
this.toolBarButton2,
this.toolBarButton3,
this.toolBarButton4,
this.toolBarButton5,
this.toolBarButton6,
this.toolBarButton7,
this.toolBarButton8,
this.toolBarButton9});
this.toolBar1.DropDownArrows = true;
this.toolBar1.ImageList = this.imageList1;
this.toolBar1.Name = "toolBar1";
this.toolBar1.ShowToolTips = true;
this.toolBar1.Size = new System.Drawing.Size(652, 38);
this.toolBar1.TabIndex = 0;
//
// toolBarButton1
//
this.toolBarButton1.ImageIndex = 0;
this.toolBarButton1.Text = "首记录";
this.toolBarButton1.ToolTipText = "首记录";
//
// toolBarButton2
//
this.toolBarButton2.ImageIndex = 1;
this.toolBarButton2.Text = "上一个记录";
this.toolBarButton2.ToolTipText = "上一个记录";
//
// toolBarButton3
//
this.toolBarButton3.ImageIndex = 2;
this.toolBarButton3.Text = "下一个记录";
this.toolBarButton3.ToolTipText = "下一个记录";
//
// toolBarButton4
//
this.toolBarButton4.ImageIndex = 3;
this.toolBarButton4.Text = "末记录";
this.toolBarButton4.ToolTipText = "末记录";
//
// toolBarButton5
//
this.toolBarButton5.ImageIndex = 4;
this.toolBarButton5.Text = "新增记录";
this.toolBarButton5.ToolTipText = "新增记录";
//
// toolBarButton6
//
this.toolBarButton6.ImageIndex = 5;
this.toolBarButton6.Text = "提交记录";
this.toolBarButton6.ToolTipText = "提交记录";
//
// toolBarButton7
//
this.toolBarButton7.ImageIndex = 6;
this.toolBarButton7.Text = "保存修改";
this.toolBarButton7.ToolTipText = "保存修改";
//
// toolBarButton8
//
this.toolBarButton8.ImageIndex = 7;
this.toolBarButton8.Text = "删除记录";
this.toolBarButton8.ToolTipText = "删除记录";
//
// toolBarButton9
//
this.toolBarButton9.ImageIndex = 8;
this.toolBarButton9.Text = "退出";
this.toolBarButton9.ToolTipText = "退出";
//
// imageList1
//
this.imageList1.ColorDepth = System.Windows.Forms.ColorDepth.Depth8Bit;
this.imageList1.ImageSize = new System.Drawing.Size(16, 16);
this.imageList1.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imageList1.ImageStream")));
this.imageList1.TransparentColor = System.Drawing.Color.Transparent;
//
// groupBox1
//
this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] {
this.button1});
this.groupBox1.Location = new System.Drawing.Point(0, 40);
this.groupBox1.Name = "groupBox1";
this.groupBox1.Size = new System.Drawing.Size(648, 56);
this.groupBox1.TabIndex = 1;
this.groupBox1.TabStop = false;
//
// button1
//
this.button1.Image = ((System.Drawing.Bitmap)(resources.GetObject("button1.Image")));
this.button1.ImageAlign = System.Drawing.ContentAlignment.TopLeft;
this.button1.Location = new System.Drawing.Point(16, 24);
this.button1.Name = "button1";
this.button1.Size = new System.Drawing.Size(72, 24);
this.button1.TabIndex = 0;
this.button1.Text = "查询";
//
// dataGrid1
//
this.dataGrid1.DataMember = "";
this.dataGrid1.HeaderForeColor = System.Drawing.SystemColors.ControlText;
this.dataGrid1.Location = new System.Drawing.Point(0, 104);
this.dataGrid1.Name = "dataGrid1";
this.dataGrid1.Size = new System.Drawing.Size(648, 144);
this.dataGrid1.TabIndex = 2;
//
// groupBox2
//
this.groupBox2.Location = new System.Drawing.Point(0, 256);
this.groupBox2.Name = "groupBox2";
this.groupBox2.Size = new System.Drawing.Size(648, 216);
this.groupBox2.TabIndex = 3;
this.groupBox2.TabStop = false;
//
// PForm
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(652, 473);
this.Controls.AddRange(new System.Windows.Forms.Control[] {
this.groupBox2,
this.dataGrid1,
this.groupBox1,
this.toolBar1});
this.Name = "PForm";
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.Text = "PForm";
this.Load += new System.EventHandler(this.PForm_Load);
this.groupBox1.ResumeLayout(false);
((System.ComponentModel.ISupportInitialize)(this.dataGrid1)).EndInit();
this.ResumeLayout(false);
}
#endregion
private void PForm_Load(object sender, System.EventArgs e)
{
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -