📄 frmmess.cs
字号:
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
using System.Data;
using System.Data.OleDb;
using System.Globalization;
namespace GpsClinet
{
/// <summary>
/// frmMess 的摘要说明。
/// </summary>
public class frmMess : System.Windows.Forms.Form
{
/// <summary>
/// 必需的设计器变量。
/// </summary>
private System.ComponentModel.Container components = null;
private System.Windows.Forms.TextBox textBox1;
private System.Windows.Forms.Label label1;
public string Connstring="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" +Application.StartupPath + "/data/gas.mdb;Persist Security Info=true;Jet OLEDB:Database password=patrol_234";
public frmMess()
{
//
// 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.textBox1 = new System.Windows.Forms.TextBox();
this.label1 = new System.Windows.Forms.Label();
this.SuspendLayout();
//
// textBox1
//
this.textBox1.BackColor = System.Drawing.Color.White;
this.textBox1.ForeColor = System.Drawing.Color.Red;
this.textBox1.Location = new System.Drawing.Point(136, 16);
this.textBox1.Multiline = true;
this.textBox1.Name = "textBox1";
this.textBox1.ReadOnly = true;
this.textBox1.Size = new System.Drawing.Size(448, 24);
this.textBox1.TabIndex = 0;
this.textBox1.Text = "textBox1";
//
// label1
//
this.label1.Location = new System.Drawing.Point(24, 24);
this.label1.Name = "label1";
this.label1.Size = new System.Drawing.Size(96, 112);
this.label1.TabIndex = 1;
this.label1.Text = "label1";
//
// frmMess
//
this.AutoScaleBaseSize = new System.Drawing.Size(6, 14);
this.ClientSize = new System.Drawing.Size(608, 418);
this.Controls.Add(this.label1);
this.Controls.Add(this.textBox1);
this.Name = "frmMess";
this.Load += new System.EventHandler(this.frmMess_Load);
this.ResumeLayout(false);
}
#endregion
private void button1_Click(object sender, System.EventArgs e)
{
this.Close();
}
private void frmMess_Load(object sender, System.EventArgs e)
{
// this.Title.Text =MainForm.strName;
// this.Receivetime.Text =MainForm.strDate;
// this.Note.Text =MainForm.strNote;
this.textBox1.Text ="fsfsdfsdfdsfdfdfdfdfdfdfdfdfdfdfdfdf\r\n dfsfsdfsfdsadsadasda\r\n ddfdsdsd\r\n";
}
}
}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -