📄 formdlg.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace GPRSDrvWinApp
{
/// <summary>
/// FormDlg 的摘要说明。
/// </summary>
public class FormDlg : System.Windows.Forms.Form
{
protected System.Windows.Forms.Button btOk;
protected System.Windows.Forms.Button btCancel;
protected System.Windows.Forms.ImageList imgLstMain;
private System.ComponentModel.IContainer components;
public FormDlg()
{
//
// 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.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(FormDlg));
this.btOk = new System.Windows.Forms.Button();
this.btCancel = new System.Windows.Forms.Button();
this.imgLstMain = new System.Windows.Forms.ImageList(this.components);
this.SuspendLayout();
//
// btOk
//
this.btOk.Location = new System.Drawing.Point(56, 248);
this.btOk.Name = "btOk";
this.btOk.TabIndex = 0;
this.btOk.Text = "确定&S";
//
// btCancel
//
this.btCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel;
this.btCancel.Location = new System.Drawing.Point(224, 248);
this.btCancel.Name = "btCancel";
this.btCancel.TabIndex = 1;
this.btCancel.Text = "取消&C";
//
// imgLstMain
//
this.imgLstMain.ColorDepth = System.Windows.Forms.ColorDepth.Depth32Bit;
this.imgLstMain.ImageSize = new System.Drawing.Size(16, 16);
this.imgLstMain.ImageStream = ((System.Windows.Forms.ImageListStreamer)(resources.GetObject("imgLstMain.ImageStream")));
this.imgLstMain.TransparentColor = System.Drawing.Color.Transparent;
//
// FormDlg
//
this.AcceptButton = this.btOk;
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.CancelButton = this.btCancel;
this.ClientSize = new System.Drawing.Size(370, 295);
this.Controls.Add(this.btCancel);
this.Controls.Add(this.btOk);
this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog;
this.MaximizeBox = false;
this.MinimizeBox = false;
this.Name = "FormDlg";
this.ShowInTaskbar = false;
this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen;
this.ResumeLayout(false);
}
#endregion
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -